untarring symlinks with ../ fails randomly, silghtly OT

Corinna Vinschen corinna-cygwin@cygwin.com
Mon Jul 4 14:21:00 GMT 2011

On Jul  4 08:21, Ryan Johnson wrote:
> However, I was wrong about not seeing the problem since. Choosing a
> random source dir to blow away:
> >$ rm -rf Python-2.6.6
> >rm: cannot remove `Python-2.6.6/Lib/lib2to3/tests': Directory not empty
> >$ rm -rf Python-2.6.6
> >$
> This seems to happen more than half the time (different non-empty
> dir every time). Naturally, running under strace makes the problem
> go away (it doesn't help that strace kills stderr, where any error
> messages might have gone).
> Running the following command 10x:
> $ tar -xaf Python-2.6.6.tar.bz2 && sleep 3 && (rm -rf Python-2.6.6
> || (echo 'Retrying...' && rm -rf Python-2.6.6))
> I get six times with no error, two times with one error, one time
> each with two and three errors.

I tried this(*) with Cygwin 1.7.9 as well as with the latest from CVS
on 2K8R2 and it just works.  In a VM.

> I'm currently updating and rebuilding my cygwin sources to try out
> your patch...

Thanks.  I'm just installing W7 64 on real hardware and I'll try again
as soon as the boring install-windows/update-windows/configure-windows/
install-cygwin/configure-cygwin process is finished.


(*) I used Python-2.6.5.tar.bz2, not 2.6.6, but I can't believe that's 
    the reason I don't see the problem...

Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

More information about the Cygwin mailing list