X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-0.6 required=5.0	tests=AWL,BAYES_00,SPF_HELO_PASS,T_RP_MATCHES_RCVD
X-Spam-Check-By: sourceware.org
To: cygwin@cygwin.com
From: Lester Ingber <ingber@alumni.caltech.edu>
Subject: Re: untarring symlinks with ../ fails randomly
Date: Thu, 28 Apr 2011 03:49:16 +0000 (UTC)
Lines: 21
Message-ID: <loom.20110428T054651-842@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> <20110426074325.GP3324@calimero.vinschen.de> <loom.20110426T170653-639@post.gmane.org> <20110426152226.GA22801@ednor.casa.cgf.cx> <20110426155346.GA19578@calimero.vinschen.de> <loom.20110427T161737-566@post.gmane.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
User-Agent: Loom/3.14 (http://gmane.org/)
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.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

Dan Grayson <dan <at> math.uiuc.edu> writes:

> 
> Here is a patch to tar that fixes the problem by using mtime instead of ctime.
> Yes, it's not a problem with cygwin or tar, but I see no way for users to
> figure out, under Windows, which processes are changing the status of their
> files.
> 
> diff -ur tar-1.25-copy/src/extract.c tar-1.25/src/extract.c
> --- tar-1.25-copy/src/extract.c	2010-11-01 15:34:59.000000000 -0500
> +++ tar-1.25/src/extract.c	2011-04-27 09:12:58.941555800 -0500
...
> 

I ran your patch on tar-1.26 and it compiled just fine.  With the new tar I have 
no tar/untar problems on two Win7 Ult x64 PCs running up to date Cygwins.

Thanks.

Lester



--
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

