bug-tar
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-tar] Directory modes in tar 1.15.90


From: Peter Fales
Subject: [Bug-tar] Directory modes in tar 1.15.90
Date: Thu, 20 Apr 2006 09:45:27 -0500
User-agent: Mutt/1.4.2.1i

We just upgraded to tar-1.15.90 and users are complaining that operations
which used to work are now failing.   Specifically, when unpacking 
archives in a directory for which one has write permission but does
not own (such as /tmp).  

This may be a few feature, but tar-1.13.25 didn't exhibit this behavior.

Here's a scenario.  (Create a tar file which includes ".", then unpack
it in /tmp):

$ tar --version
tar (GNU tar) 1.15.90
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software.  You may redistribute copies of it under the
terms of
the GNU General Public License <http://www.gnu.org/licenses/gpl.html>.
There is NO WARRANTY, to the extent permitted by law.

Written by John Gilmore and Jay Fenlason.
$ mkdir foo                   
$ chmod 705 foo               
$ cd foo                      
$ touch bar
$ tar czvf /tmp/foo.tar.gz .
./
./bar
$ cd /tmp                   
$ tar xmzvf foo.tar.gz
./
./bar
tar: .: Cannot change mode to rwx---rwt: Operation not permitted
tar: Error exit delayed from previous errors
$                     

-- 
Peter Fales
Lucent Technologies
Member of Technical Staff
2000 Lucent Lane
Room: 1C-436
Naperville, IL 60566-7033
Email: address@hidden
Phone: 630 979 8031




reply via email to

[Prev in Thread] Current Thread [Next in Thread]