bug-tar
[Top][All Lists]
Advanced

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

[Bug-tar] Option -h of tar 1.26 is broken


From: Juan PC
Subject: [Bug-tar] Option -h of tar 1.26 is broken
Date: Tue, 15 Nov 2011 20:27:48 +0100
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.24) Gecko/20111108 Fedora/3.1.16-1.fc14 Lightning/1.0b3pre Thunderbird/3.1.16

Hi all,

Option -h is not working in tar 1.26. When creating a tar archive, if the file a symlink points to (let us call it "the original file") appears after the symlink, then, the original file can not be individually extracted from the tar file. Here you have the proof (Linux distribution is Fedora 16):

address@hidden ~]# tar cvzhf test.tgz /etc/rc.d/init.d/httpd /etc/rc0.d/K15httpd
tar: Removing leading `/' from member names
/etc/rc.d/init.d/httpd
tar: Removing leading `/' from hard link targets
/etc/rc0.d/K15httpd
address@hidden ~]# tar xvzf test.tgz etc/rc.d/init.d/httpd
etc/rc.d/init.d/httpd
address@hidden ~]# tar cvzhf test.tgz /etc/rc0.d/K15httpd /etc/rc.d/init.d/httpd
tar: Removing leading `/' from member names
/etc/rc0.d/K15httpd
tar: Removing leading `/' from hard link targets
/etc/rc.d/init.d/httpd
address@hidden ~]# tar xvzf test.tgz etc/rc.d/init.d/httpd
etc/rc.d/init.d/httpd
tar: etc/rc.d/init.d/httpd: Cannot hard link to `etc/rc0.d/K15httpd': No such file or directory
tar: Exiting with failure status due to previous errors
address@hidden ~]#

If you need more tests, please, let me know.

Regards,

        Juan



reply via email to

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