delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2011/04/27/23:49:53

X-Recipient: archive-cygwin AT delorie DOT 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 AT cygwin DOT com
From: Lester Ingber <ingber AT alumni DOT caltech DOT 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 AT mail DOT gmail DOT com> <BANLkTi=GZbtLmK-Sr06-M=5xXVFzPCi82w AT mail DOT gmail DOT com> <20110424121145 DOT GB30696 AT calimero DOT vinschen DOT de> <loom DOT 20110425T165316-628 AT post DOT gmane DOT org> <20110426074325 DOT GP3324 AT calimero DOT vinschen DOT de> <loom DOT 20110426T170653-639 AT post DOT gmane DOT org> <20110426152226 DOT GA22801 AT ednor DOT casa DOT cgf DOT cx> <20110426155346 DOT GA19578 AT calimero DOT vinschen DOT de> <loom DOT 20110427T161737-566 AT post DOT gmane DOT org>
Mime-Version: 1.0
User-Agent: Loom/3.14 (http://gmane.org/)
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT 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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019