X-Recipient: archive-cygwin@delorie.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: <loom.20110425T165316-628@post.gmane.org>
References: <BANLkTikh9rCN2GRwY3eW20H0isffN5fMUg@mail.gmail.com>	<BANLkTi=GZbtLmK-Sr06-M=5xXVFzPCi82w@mail.gmail.com>	<20110424121145.GB30696@calimero.vinschen.de>	<loom.20110425T165316-628@post.gmane.org>
Date: Tue, 26 Apr 2011 11:43:47 +0800
Message-ID: <BANLkTikSgw6dmxuWVQbemdng-FcTnOw5Jg@mail.gmail.com>
Subject: Re: untarring symlinks with ../ fails randomly
From: Dima Pasechnik <dimpase@gmail.com>
To: cygwin@cygwin.com
Cc: ingber@alumni.caltech.edu
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.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 <ingber@alumni.caltech.edu> wrote:
> Corinna Vinschen <corinna-cygwin <at> 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

