delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/11/27/09:51:13

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00,SPF_PASS
X-Spam-Check-By: sourceware.org
Message-ID: <4B0FEB0A.9050509@gmail.com>
Date: Fri, 27 Nov 2009 15:06:50 +0000
From: Dave Korn <dave DOT korn DOT cygwin AT googlemail DOT com>
User-Agent: Thunderbird 2.0.0.17 (Windows/20080914)
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: tar hangs on unpacking calcoo_1.3.16.orig.tar
References: <5a05e0e60911261052w2e60586cxe7a90d02b4cf6e0f AT mail DOT gmail DOT com> <20091126213025 DOT GA26443 AT win DOT tue DOT nl> <4B0EF59B DOT 90609 AT cs DOT umass DOT edu> <20091127002050 DOT GA27305 AT win DOT tue DOT nl> <20091127005219 DOT GE18148 AT ednor DOT casa DOT cgf DOT cx> <20091127085608 DOT GW29173 AT calimero DOT vinschen DOT de> <20091127105701 DOT GA30132 AT win DOT tue DOT nl>
In-Reply-To: <20091127105701.GA30132@win.tue.nl>
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

Reinier Post wrote:
> On Fri, Nov 27, 2009 at 09:56:08AM +0100, Corinna Vinschen wrote:

>>> No, it shouldn't.  We are not going to patch every conceivable
>>> program to understand MS-DOS special files.
> 
> I am not asking for tar to deal with a special file,
> but with a C source code file that happens to be named aux.c.

  That is just what the phrase "MS-DOS special files" refers to: *any* file of
any kind that has 'aux', 'con', 'prn', etc. as the base part of the filename.

> I'm not even asking for it to write that file, merely not to go
> into an infinite loop.  I know tar can easily hang on certain input
> (e.g. /dev/zero) but I think this particular behavior is not something
> users can be expected to work around preventively - a bug.

> Can't this be handled at the system call level?
> After all it's not the tar source code but unlink()'s return code
> that seems to cause the problem.

  It's certainly a bug that unlink() returns 0 on a file that doesn't exist,
instead of indicating ENOENT.  However 1.5 series is dead, there aren't going
to be any further updates to it.  You can always get the sources and patch
yourself a custom DLL, if for some reason upgrading to 1.7 isn't an option for
you, but that's about the limit of your options I'm afraid.

    cheers,
      DaveK


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