From owner-freebsd-stable Thu Aug 8 23:11:49 2002 Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0811B37B400 for ; Thu, 8 Aug 2002 23:11:46 -0700 (PDT) Received: from rwcrmhc51.attbi.com (rwcrmhc51.attbi.com [204.127.198.38]) by mx1.FreeBSD.org (Postfix) with ESMTP id 69FB943E65 for ; Thu, 8 Aug 2002 23:11:45 -0700 (PDT) (envelope-from crist.clark@attbi.com) Received: from blossom.cjclark.org ([12.234.91.48]) by rwcrmhc51.attbi.com (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP id <20020809061144.KTFU19356.rwcrmhc51.attbi.com@blossom.cjclark.org>; Fri, 9 Aug 2002 06:11:44 +0000 Received: from blossom.cjclark.org (localhost. [127.0.0.1]) by blossom.cjclark.org (8.12.3/8.12.3) with ESMTP id g796BiJK080247; Thu, 8 Aug 2002 23:11:44 -0700 (PDT) (envelope-from crist.clark@attbi.com) Received: (from cjc@localhost) by blossom.cjclark.org (8.12.3/8.12.3/Submit) id g796BiK1080246; Thu, 8 Aug 2002 23:11:44 -0700 (PDT) X-Authentication-Warning: blossom.cjclark.org: cjc set sender to crist.clark@attbi.com using -f Date: Thu, 8 Aug 2002 23:11:43 -0700 From: "Crist J. Clark" To: "Daniel O'Connor" Cc: freebsd-stable@FreeBSD.ORG Subject: Re: Tar not following links now? Message-ID: <20020809061143.GB79890@blossom.cjclark.org> Reply-To: cjclark@alum.mit.edu References: <1028857372.1886.9.camel@chowder.gsoft.com.au> <20020809053552.GA79890@blossom.cjclark.org> <1028872126.3108.5.camel@chowder.gsoft.com.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1028872126.3108.5.camel@chowder.gsoft.com.au> User-Agent: Mutt/1.4i X-URL: http://people.freebsd.org/~cjc/ Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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