Date: Thu, 2 Mar 2017 12:56:30 +0000 From: Matthew Seaman <matthew@FreeBSD.org> To: freebsd-questions@freebsd.org Subject: Re: cpio - Cannot extract through symlink Message-ID: <5e3951af-1484-0089-cbe6-2349a77ab43f@FreeBSD.org> In-Reply-To: <20170302124428.GA70192@www.stare.cz> References: <20170302124428.GA70192@www.stare.cz>
next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --UB1kfdrnmBoSCHuDwcSmxenGwEGhqjtOV Content-Type: multipart/mixed; boundary="5wsNJEqbG3tJ7cIxsgQf37Eqo4DeD8BWk"; protected-headers="v1" From: Matthew Seaman <matthew@FreeBSD.org> To: freebsd-questions@freebsd.org Message-ID: <5e3951af-1484-0089-cbe6-2349a77ab43f@FreeBSD.org> Subject: Re: cpio - Cannot extract through symlink References: <20170302124428.GA70192@www.stare.cz> In-Reply-To: <20170302124428.GA70192@www.stare.cz> --5wsNJEqbG3tJ7cIxsgQf37Eqo4DeD8BWk Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable On 2017/03/02 12:44, Jan Stary wrote: > but I would very much like to avoid the unportable --insecure. > How is /tmp/foo supposed to get copied to $HOME 'via symlink' anyway? > Am I missing something obvious? By default, there is a symlink from /home to /usr/home. I'm not entirely sure why -- historical reasons, probably. You can mount home directories directly as /home -- this works well, and it's how the system seems to be expecting things to be laid out. If you're on ZFS, it's fairly easy to just remove the symlink at /home and then rename ZFSes and play with mountpoints and various other properties to get /home directly mounted. For UFS, so long as you have a separate partition for /usr/home, it's doable to re-arrange things in a similar way, but remember to update /etc/fstab appropriately. Or if you just want your cpio command to work, specify the destination as '/usr/home/hans' Cheers, Matthew --5wsNJEqbG3tJ7cIxsgQf37Eqo4DeD8BWk-- --UB1kfdrnmBoSCHuDwcSmxenGwEGhqjtOV Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Comment: GPGTools - https://gpgtools.org iQJ8BAEBCgBmBQJYuBaGXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQxOUYxNTRFQ0JGMTEyRTUwNTQ0RTNGMzAw MDUxM0YxMEUwQTlFNEU3AAoJEABRPxDgqeTnfjkP/2/yA77XJExThTHGiutfd7g+ zQhgV+Lf5dQEPwiJVfpMOdQ0V73L6z24EuC/hgZkRQ+dYnXce5fhcHZovqFyiA8u v+hMsndbncaj2+AHnQeKSL8T96Fiog2pHbqQROooosofBaT0SUe1fit4ZsKU8l/q ggX3dMvNOKsn8YnDa6V5knXx4qSxPW1nZiJzBqcuV7/nJs9tVthLx8uL2j5O/aiN CbZATMJsURwPvOv00cTl4+ObRk+tHDxIWeZZBvrPcOVZA8GnH6MCWtk4RWH5BPxn 1TnZQ22B47OnDfY64bEPd1KhgW69e1j9dOf7pIwSVTuBV/AKYb/y8+szoaFkTCyf 1Xi85OIZaoQIbwKpwIN/TdKuPknVi2grQqVn7leoc52GyHb84yTS3QCdhmwtE/D5 wtTZMinRUYS4yxn0jJY21YGQes9QVwUtmIZDBuB6NuYIXtC9rLLYo4I2QLi9pswY u1JSM7hgVIZNmEVibnh8vzLwkGPEEyStdKifU+bttaKngEwElH/y+WyAvFqbOG8u hNszuYDcAg5DOqVBRJUsuOYdWZTRUadFzCVTzd7sinYdLPaFvIVD4qee8lgGoCfV 9ULeRfeOsDTGB1I6Thn36AUwfegZzkfKOvzGLcgZyKK1lG+5bEAEs9tIathQ6NRI wDsHYjbbMcOnU+E/+sY3 =nWel -----END PGP SIGNATURE----- --UB1kfdrnmBoSCHuDwcSmxenGwEGhqjtOV--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5e3951af-1484-0089-cbe6-2349a77ab43f>