delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/05/27/10:37:14

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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
Message-ID: <40B5F6EB.5030200@scytek.de>
Date: Thu, 27 May 2004 10:10:51 -0400
From: Volker Quetschke <quetschke AT scytek DOT de>
Reply-To: cygwin AT cygwin DOT com
User-Agent: Mozilla Thunderbird 0.6 (Windows/20040502)
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: redirection can create nul files - Was: rm hangs on illegal filename nul
References: <NUTMEGbH6FTpaNrsiVf00000094 AT NUTMEG DOT CAM DOT ARTIMI DOT COM>
In-Reply-To: <NUTMEGbH6FTpaNrsiVf00000094@NUTMEG.CAM.ARTIMI.COM>
X-Enigmail-Version: 0.84.0.0
X-Enigmail-Supports: pgp-inline, pgp-mime
X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-1.2.2 (mrelay3.uni-hannover.de [130.75.2.41]); Thu, 27 May 2004 16:36:51 +0200 (MEST)
X-Scanned-By: MIMEDefang 2.42
X-IsSubscribed: yes

--------------enig6D3CD040D610629BD42C10CD
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

Hi Dave,

>>I somehow managed to create a file named nul (further investigation
>>pending), and now rm -rf hangs when trying to remove the 
>>directory with
>>this file.
> 
>   Known ('doze) problem.  Also occurs with filenames like aux, com1, lpt
> etc.  The workaround is WDDTT.
No, wrong, the problem arises from cygwins new ability to create
filenames named nul.

Binary mount. Try:
$ echo hello > nul

when you do this with 1.5.10 you get a nice file named nul, 1.5.9
just ignores it. Yes, you're perfectly right, don't do it when it
hurts, but I stubled over this problem because the software I'm
compiling has (now obviously) broken build scripts, and now I have
a few undeletable files on my harddisk.

In my previous mail I said "rm -rf nul" can remove the file, no,
when you provide the complete path rm just doesn't complain/hang.

Any ideas how to remove the nul files? Really, I don't want to
format my disk because of this.

Volker

-- 
PGP/GPG key  (ID: 0x9F8A785D)  available  from  wwwkeys.de.pgp.net
key-fingerprint 550D F17E B082 A3E9 F913  9E53 3D35 C9BA 9F8A 785D

--------------enig6D3CD040D610629BD42C10CD
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFAtfz9PTXJup+KeF0RAt5DAKCNKjFL9ec2Q6KekPbJ8C2Oawdu9gCeODPf
1nhYaJ+Z/syCZTGpdauNk9k=
=Oj7X
-----END PGP SIGNATURE-----

--------------enig6D3CD040D610629BD42C10CD--

- Raw text -


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