From owner-freebsd-bugs Tue Aug 29 22:20:16 1995 Return-Path: bugs-owner Received: (from majordom@localhost) by freefall.FreeBSD.org (8.6.11/8.6.6) id WAA10488 for bugs-outgoing; Tue, 29 Aug 1995 22:20:16 -0700 Received: (from gnats@localhost) by freefall.FreeBSD.org (8.6.11/8.6.6) id WAA10478 ; Tue, 29 Aug 1995 22:20:06 -0700 Date: Tue, 29 Aug 1995 22:20:06 -0700 Message-Id: <199508300520.WAA10478@freefall.FreeBSD.org> To: freebsd-bugs Cc: From: Nate Williams Subject: Re: bin/714: tar not restoring permissions properly Reply-To: Nate Williams Sender: bugs-owner@FreeBSD.org Precedence: bulk The following reply was made to PR bin/714; it has been noted by GNATS. From: Nate Williams To: ortmann@localhost.nodak.edu Cc: FreeBSD-gnats-submit@freebsd.org Subject: Re: bin/714: tar not restoring permissions properly Date: Tue, 29 Aug 1995 23:11:52 -0600 > >Synopsis: tar is not restoring permissions...possibly when the sticky but is set > >How-To-Repeat: > > $ mkdir asdf fdsa > $ chmod 1777 asdf > $ tar cf - asdf | ( cd fdsa ; tar xvf - ) > $ /bin/ls -l fdsa > > drwx-----T 2 ortmann wheel 512 Aug 29 23:43 asdf > > > >Fix: > > I do not know of a fix for this problem. Try this: $ mkdir asdf fdsa $ chmod 1777 asdf $ tar cf - asdf | ( cd fdsa ; tar xpvf - ) $ /bin/ls -l fdsa Note the addition of 'p' to the arguement list. It works on a 2.0 system as both root and a regular user. Nate