From owner-freebsd-current Thu Aug 1 11:43:53 2002 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 475BA37B400; Thu, 1 Aug 2002 11:43:50 -0700 (PDT) Received: from mailman.zeta.org.au (mailman.zeta.org.au [203.26.10.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8B8D443E97; Thu, 1 Aug 2002 11:43:48 -0700 (PDT) (envelope-from bde@zeta.org.au) Received: from bde.zeta.org.au (bde.zeta.org.au [203.2.228.102]) by mailman.zeta.org.au (8.9.3/8.8.7) with ESMTP id EAA28654; Fri, 2 Aug 2002 04:43:45 +1000 Date: Fri, 2 Aug 2002 04:48:44 +1000 (EST) From: Bruce Evans X-X-Sender: bde@gamplex.bde.org To: Maxim Sobolev Cc: Bakul Shah , , Subject: Re: pkg_add broken by POLA breakage in tar In-Reply-To: <3D497135.92A17316@FreeBSD.org> Message-ID: <20020802042122.C3643-100000@gamplex.bde.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Thu, 1 Aug 2002, Maxim Sobolev wrote: > Bakul Shah wrote: > > > > My recollection matches what Bruce says (and I have been > > using unix since when version 7 was the latest and greatest). > > At least the SUN OS 5.6 man page I could locate online says > > this: > > > > The o function modifier is only valid with the x function. p > > Restore the named files to their original modes, and ACLs if > > applicable, ignoring the present umask(1). This is the > > default behavior if invoked as super-user with the x > > function letter specified. If super-user, SETUID and sticky > > information are also extracted, and files are restored with > > their original owners and permissions, rather than owned > > by root. > > > > This superuser behavior is what allows one to use tar as an > > archiving program. > > Well, OK, now I am really confused. So what should we be bound to? To > the POLA (old GNU tar in 4.6-release and downward was not fully > preserving permissions unless -p is specified, even when invoked by > root)? Or to what other systems do? Bruce, what do you think? I'm confused too. I new about the special case for root from old (gnu tar?) documentation and thought that FreeBSD tar had it. But the FreeBSD behaviour seems to be in the FSF version of old tar. The ChangeLogs for the current tar only go back to 1996 and don't seem to cover any FSF changes related to this. I think we should switch to the documented superuser behaviour as soon as possible (immediately in -current). Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message