tar & symbolic links

Fergus Henderson fjh@cs.mu.OZ.AU
Wed Dec 16 07:56:00 GMT 1998

I'm using Cygwin version b20.1.
When I try to untar a tar file containing symbolic links,
and those symbolic links already exist,
I get the following error message:

	tar: foo: Could not create symlink to `bar': Permission denied 

This behaviour differs from e.g. Debian Linux, where it instead
silently overwrites any existing symbol links (just as it does
for ordinary files).

At very least, the error message ought to be something less misleading,

	tar: foo: Could not create symlink to `bar': File exists

P.S.  Here's how to reproduce the problem:

	ln -s foo bar
	tar cvf t.tar bar
	tar xvf t.tar
	tar xvf t.tar

Fergus Henderson <fjh@cs.mu.oz.au>  |  "Binaries may die
WWW: < http://www.cs.mu.oz.au/~fjh >  |   but source code lives forever"
PGP: finger fjh@        |     -- leaked Microsoft memo.
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".

More information about the Cygwin mailing list