Date: Sat, 2 Aug 2008 19:53:18 -0400 From: "Josh Carroll" <josh.carroll@gmail.com> To: perryh@pluto.rain.com Cc: freebsd-questions@freebsd.org Subject: Re: undocumented tar --unlink switch Message-ID: <8cb6106e0808021653h491c8ac0re3c2f4cd067e8c98@mail.gmail.com> In-Reply-To: <4894ef2e.2NiKL22MfAcdbs27%perryh@pluto.rain.com> References: <4894ef2e.2NiKL22MfAcdbs27%perryh@pluto.rain.com>
next in thread | previous in thread | raw e-mail | index | archive | help
> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?8cb6106e0808021653h491c8ac0re3c2f4cd067e8c98>