cpio - Cannot extract through symlink
matthew at FreeBSD.org
Thu Mar 2 12:56:45 UTC 2017
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
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 972 bytes
Desc: OpenPGP digital signature
More information about the freebsd-questions