tar: symlinks unpacked to empty files

Yaakov (Cygwin/X) yselkowitz@users.sourceforge.net
Sun Jul 4 10:24:00 GMT 2010


With tar-1.23-1 and recent snapshot:

echo foo > foo
ln -s $PWD/foo bar
tar cf test.tar bar foo
rm -f bar foo
tar xf test.tar
ls -l bar foo

You will see that 'bar' is a 0-byte file with 0000 permissions instead
of a symlink.  The symlink reference need not be absolute; it also
happens with relative links in different directories, but does not
happen if I just "ln -s foo bar".


Yaakov



--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple



More information about the Cygwin mailing list