This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

tar: symlinks unpacked to empty files


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]