bug-tar
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-tar] Regarding untaring tar files containing symlinks


From: Joerg Schilling
Subject: Re: [Bug-tar] Regarding untaring tar files containing symlinks
Date: Fri, 27 Jun 2014 12:21:41 +0200
User-agent: nail 11.22 3/20/05

Amit Kapila <address@hidden> 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:address@hidden (home) Jörg Schilling D-13353 Berlin
       address@hidden                (uni)  
       address@hidden (work) Blog: http://schily.blogspot.com/
 URL:  http://cdrecord.berlios.de/private/ ftp://ftp.berlios.de/pub/schily



reply via email to

[Prev in Thread] Current Thread [Next in Thread]