This is the mail archive of the cygwin@sourceware.cygnus.com 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]

tar & symbolic links


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,
e.g.

	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@128.250.37.3        |     -- 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".


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