undocumented tar --unlink switch
Around line 37 of /usr/src/usr.sbin/pkg_install/add/extract.c there's an invocation of /usr/bin/tar with a --unlink switch, which I don't see mentioned in the tar(1) manpage. Anyone happen to know what this does, or do I need to dig into the code? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: undocumented tar --unlink switch
In the last episode (Aug 02), [EMAIL PROTECTED] said: Around line 37 of /usr/src/usr.sbin/pkg_install/add/extract.c there's an invocation of /usr/bin/tar with a --unlink switch, which I don't see mentioned in the tar(1) manpage. Anyone happen to know what this does, or do I need to dig into the code? That's just the longopts version of -U. They're mainly for gnutar compatibility, and the manpage refers to them at the very end: There are alternative long options for many of the short options that are deliberately not documented. -- Dan Nelson [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: undocumented tar --unlink switch
Around line 37 of /usr/src/usr.sbin/pkg_install/add/extract.c there's an invocation of /usr/bin/tar with a --unlink switch, which I don't see mentioned in the tar(1) manpage. Anyone happen to know what this does, or do I need to dig into the code? My guess was that it was the long option version of -U: -U (x mode only) Unlink files before creating them. Without this option, tar overwrites existing files, which preserves existing hardlinks. With this option, existing hardlinks will be broken, as will any symlink that would affect the location of an A quick perusal of the source confirms. Josh ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]