From owner-freebsd-stable  Thu Aug  8 22:35:59 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 6007937B400
	for <freebsd-stable@FreeBSD.ORG>; Thu,  8 Aug 2002 22:35:57 -0700 (PDT)
Received: from sccrmhc01.attbi.com (sccrmhc01.attbi.com [204.127.202.61])
	by mx1.FreeBSD.org (Postfix) with ESMTP id A79F343E6E
	for <freebsd-stable@FreeBSD.ORG>; Thu,  8 Aug 2002 22:35:56 -0700 (PDT)
	(envelope-from crist.clark@attbi.com)
Received: from blossom.cjclark.org ([12.234.91.48]) by sccrmhc01.attbi.com
          (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP
          id <20020809053555.WHUD23732.sccrmhc01.attbi.com@blossom.cjclark.org>;
          Fri, 9 Aug 2002 05:35:55 +0000
Received: from blossom.cjclark.org (localhost. [127.0.0.1])
	by blossom.cjclark.org (8.12.3/8.12.3) with ESMTP id g795ZsJK080073;
	Thu, 8 Aug 2002 22:35:55 -0700 (PDT)
	(envelope-from crist.clark@attbi.com)
Received: (from cjc@localhost)
	by blossom.cjclark.org (8.12.3/8.12.3/Submit) id g795Zqss080072;
	Thu, 8 Aug 2002 22:35:52 -0700 (PDT)
X-Authentication-Warning: blossom.cjclark.org: cjc set sender to crist.clark@attbi.com using -f
Date: Thu, 8 Aug 2002 22:35:52 -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: <20020809053552.GA79890@blossom.cjclark.org>
Reply-To: "Crist J. Clark" <cjc@FreeBSD.ORG>
References: <1028857372.1886.9.camel@chowder.gsoft.com.au>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <1028857372.1886.9.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: <freebsd-stable.FreeBSD.ORG>
List-Archive: <http://docs.freebsd.org/mail/> (Web Archive)
List-Help: <mailto:majordomo@FreeBSD.ORG?subject=help> (List Instructions)
List-Subscribe: <mailto:majordomo@FreeBSD.ORG?subject=subscribe%20freebsd-stable>
List-Unsubscribe: <mailto:majordomo@FreeBSD.ORG?subject=unsubscribe%20freebsd-stable>
X-Loop: FreeBSD.ORG

On Fri, Aug 09, 2002 at 11:12:47AM +0930, Daniel O'Connor wrote:
> I recently updated several machines to -stable (OpenSSL :) and found
> that tar nolonger seems to follow links.
> 
> [cain 11:06] ~/projects/rrd >ls -lad /home
> lrwxr-xr-x  1 root  wheel  9 Mar 15 12:26 /home -> /usr/home
> [cain 11:09] ~/projects/rrd >ls -lad /usr/home
> drwxr-xr-x  16 root  wheel  512 Mar 28 10:05 /usr/home
> [cain 11:05] ~/projects/rrd >tar -Pcf - /home/ | tar -tvf - 
> lrwxr-xr-x root/wheel        0 Mar 15 12:26 2002 /home -> /usr/home
> [cain 11:08] ~/projects/rrd >uname -a
> FreeBSD cain.gsoft.com.au 4.6-STABLE FreeBSD 4.6-STABLE #10: Tue Aug  6 11:49:28 CST 2002     doconnor@cain.gsoft.com.au:/usr/obj/usr/src/sys/CAIN  i386
> 
> As opposed to my older system
> [chowder 11:10] ~ >ls -lad /home
> lrwx------  1 root  wheel  9 Aug 20  2001 /home -> /usr/home
> [chowder 11:10] ~ >ls -lad /usr/home
> drwxr-xr-x  4 root  wheel  512 Jul 20 17:04 /usr/home
> [chowder 11:09] ~ >tar -Pcf - /home/ | tar -tvf -
> drwxr-xr-x root/wheel        0 Jul 20 17:04 2002 /home/
> drwxr-xr-x radar/radar       0 Aug  9 10:35 2002 /home/radar/
> [ .... ]
> [chowder 11:09] ~ >uname -a
> FreeBSD chowder.gsoft.com.au 4.6-PRERELEASE FreeBSD 4.6-PRERELEASE #12: Fri May 10 15:54:54 CST 2002     darius@chowder.gsoft.com.au:/usr/obj/usr/src/sys/CHOWDER  i386
> 
> It seems like a bit of a POLA violation especially as the man page
> doesn't appear to mention and option to get the old behaviour back.

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.
-- 
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