X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=3.0 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org MIME-Version: 1.0 In-Reply-To: References: <20110424121145 DOT GB30696 AT calimero DOT vinschen DOT de> Date: Tue, 26 Apr 2011 11:43:47 +0800 Message-ID: Subject: Re: untarring symlinks with ../ fails randomly From: Dima Pasechnik To: cygwin AT cygwin DOT com Cc: ingber AT alumni DOT caltech DOT edu Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Dear all, that's roughly what I also sent to the list in reply to Corinna's message, but it didn't get through (spamfilter? blacklist? - no idea). I tried sending 4 times, and all these messages went to a black hole... On 25 April 2011 22:59, Lester Ingber wrote: > Corinna Vinschen cygwin.com> writes: > >> >> On Apr 24 17:14, Dima Pasechnik wrote: >> > Dear all, >> > reposting, as the message did not get through to the mailing list yest= erday: >> > >> > The issue I have is exactly as described in >> > http://sourceware.org/ml/cygwin/2011-04/msg00299.html >> > I can reproduce this on a very similar Windows 7 host. >> > (To be precise, it seems hard to predict when creating symlinks fails; >> > I could say >> > that perhaps 20% of them, on average, are not created correctly (i.e. >> > I get files of size 0 instead)). >> >> A simple testcase in plain C to reproduce the issue would be fine. >> Did you try to create the symlinks under strace? =C2=A0It should contain >> some valuable hint from the function "symlink_worker". >> >> Corinna >> > > The problem seems to be with untar, not tar per se. =C2=A0Just today, I d= id `tar cp` > a directory of a few hundred links under Cygwin. =C2=A0Under an unbuntu m= achine I > recovered all files and links just fine. =C2=A0Under Cygwin, all files we= re 0 and > permissions were "----------" instead of "lrwxrwxrwx" as in the original > directory. =C2=A0(Yesterday, half the links were 0. =C2=A0After compiling= tar-12.6 from > gnu.org I still got 8 0's. =C2=A0I then moved that tar to tar-1.26 yester= day.) =C2=A0I > include an excerpt of the log of `tar xfp` doing this with strace just fo= r one > file, index.html. > [...] Dmitrii -- 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