Amit Kapila <amit.kapil...@gmail.com> wrote:

> While working on one software, I face the requirement
> to untar a tar file on windows and it contains symlinks as
> well.
>
> While untaring it using tar -xvf abc.tar, it gives me below
> error for symlinks:
>
> tar.exe: xyz/1234: Cannot create symlink to `E:\\sym_loc': Not a directory
>
> The directory sym_loc already exists, is this a known
> limitation of tar on Windows?

Win-DOS does not support symlinks. Even newer versions that claim to support 
symlinks make a difference between links to files and links to directories.

If you are not able to live with the Cygwin symlink emulation, I recommend to 
use star and to tell it to make copies by using the option -copysymlinks

Jörg

-- 
 EMail:jo...@schily.isdn.cs.tu-berlin.de (home) Jörg Schilling D-13353 Berlin
       j...@cs.tu-berlin.de                (uni)  
       joerg.schill...@fokus.fraunhofer.de (work) Blog: 
http://schily.blogspot.com/
 URL:  http://cdrecord.berlios.de/private/ ftp://ftp.berlios.de/pub/schily

Reply via email to