Date: Thu, 8 Aug 2002 23:11:43 -0700 From: "Crist J. Clark" <crist.clark@attbi.com> To: "Daniel O'Connor" <doconnor@gsoft.com.au> Cc: freebsd-stable@FreeBSD.ORG Subject: Re: Tar not following links now? Message-ID: <20020809061143.GB79890@blossom.cjclark.org> In-Reply-To: <1028872126.3108.5.camel@chowder.gsoft.com.au> References: <1028857372.1886.9.camel@chowder.gsoft.com.au> <20020809053552.GA79890@blossom.cjclark.org> <1028872126.3108.5.camel@chowder.gsoft.com.au>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Aug 09, 2002 at 03:18:45PM +0930, Daniel O'Connor wrote:
> On Fri, 2002-08-09 at 15:05, Crist J. Clark wrote:
> > The "new" behavior is the correct behavior. I'm not sure when or why
> > things were broken in your 4.6-PRERELEASE example. The option you want
> > is the '-h' option.
>
> But that dereferences _all_ symlinks, not just ones on the command line.
>
> I guess I really want -H (like du has).
>
> I don't understand why it changed though.
Hmm. I misunderstood.
In 4.6-RELEASE,
$ mkdir bbbb
$ ln -s bbbb aaaa
$ tar cf - aaaa | tar tvf -
lrwxr-xr-x cjc/wheel 0 Aug 8 23:04 2002 aaaa -> bbbb
$ tar cf - aaaa/ | tar tvf -
drwxr-xr-x cjc/wheel 0 Aug 8 23:04 2002 aaaa/
And in 4.6-STABLE,
$ tar cf - aaaa | tar tvf -
lrwxr-xr-x cjc/cjc 0 Aug 8 23:08 2002 aaaa -> bbbb
$ tar cf - aaaa/ | tar tvf -
lrwxr-xr-x cjc/cjc 0 Aug 8 23:08 2002 aaaa -> bbbb
This behavior I'm not to sure about. I think that may be a bug. Why
wouldn't tar(1) work like other tools?
$ ls -ld aaaa
lrwxr-xr-x 1 cjc cjc 4 Aug 8 23:08 aaaa -> bbbb
$ ls -ld aaaa/
drwxr-xr-x 2 cjc cjc 512 Aug 8 23:08 aaaa/
--
Crist J. Clark | cjclark@alum.mit.edu
| cjclark@jhu.edu
http://people.freebsd.org/~cjc/ | cjc@freebsd.org
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020809061143.GB79890>
