rm hangs on illegal filename nul
Volker Quetschke
quetschke@scytek.de
Thu May 27 14:42:00 GMT 2004
Vince Hoffman wrote:
>>>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.
>>
>
> umm is that another way of saying, try
> cmd /c dir /x
> find 8.3 format name of file and them rm that.
Hmm,
$ cmd /c dir /x
Volume in drive C has no label.
Volume Serial Number is 2C4B-5A99
Directory of C:\cygwin\home\quetschke
05/27/2004 09:52 AM <DIR> .
05/27/2004 09:52 AM <DIR> ..
05/27/2004 09:52 AM 4 nul
doesn't help :-(
> i have a bash script to recurse and remove directories with names of lpt,
> nul,aux etc somewhere, as a client had left anonymous ftp on and some
> warez group had created a directory structure about 20 deep with this kind
> of name.
Maybe that works for directory names, but this is a file named nul.
Volker
--
PGP/GPG key (ID: 0x9F8A785D) available from wwwkeys.de.pgp.net
key-fingerprint 550D F17E B082 A3E9 F913 9E53 3D35 C9BA 9F8A 785D
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 254 bytes
Desc: OpenPGP digital signature
URL: <http://cygwin.com/pipermail/cygwin/attachments/20040527/f4af7c0e/attachment.sig>
More information about the Cygwin
mailing list