bug-tar
[Top][All Lists]
Advanced

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

Re: [Bug-tar] Tar is destroying existing symbolic links - or maybe I'm i


From: Joerg Schilling
Subject: Re: [Bug-tar] Tar is destroying existing symbolic links - or maybe I'm ignorant with the gnu-tar
Date: Sat, 31 Mar 2007 15:39:28 +0200
User-agent: nail 11.22 3/20/05

"KAEFFERBITZ, Thomas" <address@hidden> wrote:

> Hello Together,
>
> I think the following is a bug, but maybe I just can't handle it correctly.
>
> The situation before invoking tar showed those directories on the machine
>
>
> $ ls -ld bin*
> lrwxrwxrwx    1 kaefferb vvv            16 Dec 28 12:58 bin -> 
> /v3/v3i17/bin-80
> drwxrwxr-x    2 kaefferb vvv         11816 Oct  5 12:17 bin-72
> drwxrwxr-x    2 kaefferb vvv         14296 Dec 28 11:10 bin-75
> drwxr-xr-x    2 kaefferb vvv         14504 Dec 28 11:50 bin-80
>
>
> We had been here
>
>
> $ pwd
> /v3/v3i17
>
>
> Now I took the tar-extract  from the archive
>
>
> $ tar xvzf LATEST.tgz 'bin'
> bin/
> bin/XGPIDSYU.dll_WINNT_ORA7 ....
>
>
>
> This resulted in a new situation
>
>
> $ ls -ld bin*
> drwxrwxr-x    2 kaefferb vvv           928 Dec 28 12:21 bin
> drwxrwxr-x    2 kaefferb vvv         11816 Oct  5 12:17 bin-72
> drwxrwxr-x    2 kaefferb vvv         14296 Dec 28 11:10 bin-75
> drwxr-xr-x    2 kaefferb vvv         14504 Dec 28 11:50 bin-80
>
>
> the symbolic link was replaced by the directory from the tar-archive; there 
> is enough work-araound, but a little inconvenient in a frequently changing 
> environment. 
> The option '-h' didn't work, as expected.

Isn't this a result from the way gnu tar tries to prevent attacks with symlinks?

If yes, then gnu tar does not hehave compatible to tar.

You could try to use star instead.

ftp://ftp.berlios.de/pub/cdrecord/alpha/


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/old/private/ ftp://ftp.berlios.de/pub/schily




reply via email to

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