Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 29 Aug 1995 22:20:06 -0700
From:      Nate Williams <nate@rocky.sri.MT.net>
To:        freebsd-bugs
Subject:   Re: bin/714: tar not restoring permissions properly
Message-ID:  <199508300520.WAA10478@freefall.FreeBSD.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/714; it has been noted by GNATS.

From: Nate Williams <nate@rocky.sri.MT.net>
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199508300520.WAA10478>