This is the mail archive of the
cygwin
mailing list for the Cygwin project.
tar: symlinks unpacked to empty files
- From: "Yaakov (Cygwin/X)" <yselkowitz at users dot sourceforge dot net>
- To: cygwin <cygwin at cygwin dot com>
- Date: Sun, 04 Jul 2010 04:50:41 -0500
- Subject: 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