From owner-freebsd-current Thu Jun 6 23:15:23 2002 Delivered-To: freebsd-current@freebsd.org Received: from blues.jpj.net (blues.jpj.net [204.97.17.6]) by hub.freebsd.org (Postfix) with ESMTP id 9B0BF37B401; Thu, 6 Jun 2002 23:15:17 -0700 (PDT) Received: from localhost (trevor@localhost) by blues.jpj.net (8.11.6/8.11.6) with ESMTP id g576F9L09083; Fri, 7 Jun 2002 02:15:09 -0400 (EDT) Date: Fri, 7 Jun 2002 02:15:09 -0400 (EDT) From: Trevor Johnson To: Dan Nelson Cc: Maxim Sobolev , Subject: Re: WARNING! New GNU Tar in 5-CURRENT could erroneously create world writeable dirs In-Reply-To: <20020607022829.GF21901@dan.emsphone.com> Message-ID: <20020606235414.G28206-100000@blues.jpj.net> 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 Dan Nelson wrote: > > The latest version on ftp://ftp.gnu.org/gnu/tar/ is 1.13. The ones on > > ftp://alpha.gnu.org/gnu/tar/ (and everything else on that site) are > > considered unstable. I suppose it's too late to suggest tar 1.13 as a > > starting point, but maybe this could be kept in mind when importing other > > GNU products. The point I was trying to make is perhaps better conveyed by ftp://alpha.gnu.org/README . > Tar 1.13 is 3 years old, and has many bugs (incremental backups are > unusable, for example). I don't know why the GNU tar programmers decide that certain versions are stable and others are unstable. I do know that the former are found on ftp.gnu.org, and the latter on alpha.gnu.org. Now you know too, in case you didn't already. :-) I just discovered Jorg Schilling's "star" (http://www.fokus.gmd.de/research/cc/glone/employees/joerg.schilling/private/star.html) . He says that it supports POSIX.1-2001, which I assume dates from last year. It's available in the ports collection and it's under the GNU GPL. The documentation for GNU tar 1.13.25 says that it complies with POSIX 1003.1b, which was drafted in 1987 and completed in 1990. The GNU tar in FreeBSD-STABLE is from 1993 and it still works most of the time! According to Mr. Schilling's testing, GNU tar 1.13.25 has a bug: ftp://ftp.fokus.gmd.de/pub/unix/star/testscripts/README.gtarfail . I guess it qualifies as a "non-trivial program". :-) On my friend's BSD/OS system, there is no tar--or rather, it's just a hard link to pax: % ls -li `which tar` `which pax` 1819 -r-xr-xr-x 2 bin bin 58288 Jun 12 1998 /bin/pax 1819 -r-xr-xr-x 2 bin bin 58288 Jun 12 1998 /bin/tar Their tar/pax hybrid must check its argv[0]. Isn't that evil? -- Trevor Johnson To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message