delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1998/12/16/17:14:27

From: fjh AT cs DOT mu DOT OZ DOT AU (Fergus Henderson)
Subject: tar & symbolic links
16 Dec 1998 17:14:27 -0800 :
Message-ID: <19981216235959.08907.cygnus.gnu-win32@murlibobo.cs.mu.OZ.AU>
Mime-Version: 1.0
To: Cygnus GNU-win32 mailing list <gnu-win32 AT cygnus DOT com>

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019