bug-gnu-utils
[Top][All Lists]
Advanced

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

[Bug-gnu-utils] pherhaps a bug in GNU tar version 1.13.17


From: Shengyong Cheng
Subject: [Bug-gnu-utils] pherhaps a bug in GNU tar version 1.13.17
Date: Mon, 18 Sep 2000 02:08:19 -1000

Hi,


I got a .tar file , pub.tar. it is generated by 
GNU tar 1.13.17, when do a ftp transfer. Wu-ftpd
evoke tar to pack directory "pub" 

as shown below:
---------------------------------------------
ftp> ls -l
200 PORT command successful.
150 Opening ASCII mode data connection for /bin/ls.
total 16
d--x--x--x    2 0        0            4096 Sep 18 04:27 bin
dr-xr-xr-x    2 0        0            4096 Sep 18 00:39 etc
d--x--x--x    2 0        0            4096 Sep 17 09:33 lib
dr-xr-xr-x    2 0        0            4096 Sep 18 05:11 pub
226 Transfer complete.
ftp> 
ftp> get  pub.tar
local: pub.tar remote: pub.tar
200 PORT command successful.
150 Opening BINARY mode data connection for /bin/tar.
226 Transfer complete.
10240 bytes received in 0.000905 secs (1.1e+04 Kbytes/sec)
ftp> 
----------------------------------------------------------------

problem is, when exitract with GNU tar 1.13.17(same version)
, the file inside it can't be unlinked, unless by root. 
as shown below:
-------------------------------------------------
$ 
$ 
$ ls -l
total 12
-rw-r--r--    1 sleepy   sleepy      10240 Sep 18 01:08 pub.tar
$ 
$ tar xf pub.tar
$ 
$ ls -l
total 16
dr-xr-xr-x    2 sleepy   sleepy       4096 Sep 18 01:05 pub
-rw-r--r--    1 sleepy   sleepy      10240 Sep 18 01:08 pub.tar
$ 
$ ls -l ./pub
total 8
-rw-rw-r--    1 sleepy   sleepy          3 Sep 18 01:05 f1
-rw-rw-r--    1 sleepy   sleepy          3 Sep 18 01:05 f2
$ 
$ rm -fr ./pub/*
rm: cannot unlink `./pub/f1': Permission denied
rm: cannot unlink `./pub/f2': Permission denied
$ 
$ su
Password: 
# 
# rm -fr ./pub/*
# 
# ls -l ./pub
total 0
# 
# 
-----------------------------------------------------
The system I am using is redhat 6.2

if you use 'tar' provided by SunOS5.6 HP-UX etc, to extract this pub.tar, 
no problem. 

pub.tar is send to you in a single msg and encoded with uuencode.






reply via email to

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