* rm hangs on illegal filename nul
@ 2004-05-27 13:42 Volker Quetschke
2004-05-27 14:19 ` Dave Korn
0 siblings, 1 reply; 12+ messages in thread
From: Volker Quetschke @ 2004-05-27 13:42 UTC (permalink / raw)
To: cygwin
[-- Attachment #1: Type: text/plain, Size: 896 bytes --]
Hi,
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.
I just upgraded to cygwin 1.5.10-3, I will try with 1.5.9 later.
[q@lisi]/cygdrive/e/w1/OOo/expat/wntgcci.pro/misc/build/expat:{505}:
$ ll xmlparse/
total 0
-rw-rw-r-- 1 q none 0 May 26 23:58 nul
[q@lisi]/cygdrive/e/w1/OOo/expat/wntgcci.pro/misc/build/expat:{506}:
$ rm -rf xmlparse
(hangs)
But:
$ rm -rf xmlparse/nul
Removes the file. Explorer on W2K was *not* able to create that file.
$ uname -a
CYGWIN_NT-5.0 lisi 1.5.10(0.116/4/2) 2004-05-25 22:07 i686 unknown
unknown Cygwin
(W2kSP4)
I have a second nul file in a different dir, does anyone need an strace?
Volker
--
PGP/GPG key (ID: 0x9F8A785D) available from wwwkeys.de.pgp.net
key-fingerprint 550D F17E B082 A3E9 F913 9E53 3D35 C9BA 9F8A 785D
[-- Attachment #2: Type: application/pgp-signature, Size: 254 bytes --]
^ permalink raw reply [flat|nested] 12+ messages in thread
* RE: rm hangs on illegal filename nul
2004-05-27 13:42 rm hangs on illegal filename nul Volker Quetschke
@ 2004-05-27 14:19 ` Dave Korn
2004-05-27 14:31 ` Vince Hoffman
2004-05-27 14:46 ` redirection can create nul files - Was: " Volker Quetschke
0 siblings, 2 replies; 12+ messages in thread
From: Dave Korn @ 2004-05-27 14:19 UTC (permalink / raw)
To: cygwin
> -----Original Message-----
> From: cygwin-owner On Behalf Of Volker Quetschke
> Sent: 27 May 2004 14:25
> To: cygwin@cygwin.com
> Subject: rm hangs on illegal filename nul
>
> Hi,
>
> 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.
cheers,
DaveK
--
Can't think of a witty .sigline today....
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
^ permalink raw reply [flat|nested] 12+ messages in thread
* RE: rm hangs on illegal filename nul
2004-05-27 14:19 ` Dave Korn
@ 2004-05-27 14:31 ` Vince Hoffman
2004-05-27 14:42 ` Volker Quetschke
2004-05-27 14:46 ` redirection can create nul files - Was: " Volker Quetschke
1 sibling, 1 reply; 12+ messages in thread
From: Vince Hoffman @ 2004-05-27 14:31 UTC (permalink / raw)
To: Dave Korn; +Cc: cygwin
On Thu, 27 May 2004, Dave Korn wrote:
> > -----Original Message-----
> > From: cygwin-owner On Behalf Of Volker Quetschke
> > Sent: 27 May 2004 14:25
> > To: cygwin@cygwin.com
> > Subject: rm hangs on illegal filename nul
> >
> > Hi,
> >
> > 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.
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.
Vince
>
> cheers,
> DaveK
> --
> Can't think of a witty .sigline today....
>
>
> --
> Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
> Problem reports: http://cygwin.com/problems.html
> Documentation: http://cygwin.com/docs.html
> FAQ: http://cygwin.com/faq/
>
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: rm hangs on illegal filename nul
2004-05-27 14:31 ` Vince Hoffman
@ 2004-05-27 14:42 ` Volker Quetschke
2004-05-27 15:02 ` Dave Korn
0 siblings, 1 reply; 12+ messages in thread
From: Volker Quetschke @ 2004-05-27 14:42 UTC (permalink / raw)
To: cygwin
[-- Attachment #1: Type: text/plain, Size: 1178 bytes --]
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
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 254 bytes --]
^ permalink raw reply [flat|nested] 12+ messages in thread
* redirection can create nul files - Was: rm hangs on illegal filename nul
2004-05-27 14:19 ` Dave Korn
2004-05-27 14:31 ` Vince Hoffman
@ 2004-05-27 14:46 ` Volker Quetschke
2004-05-27 14:59 ` Volker Quetschke
1 sibling, 1 reply; 12+ messages in thread
From: Volker Quetschke @ 2004-05-27 14:46 UTC (permalink / raw)
To: cygwin
[-- Attachment #1: Type: text/plain, Size: 1085 bytes --]
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
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 254 bytes --]
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: redirection can create nul files - Was: rm hangs on illegal filename nul
2004-05-27 14:46 ` redirection can create nul files - Was: " Volker Quetschke
@ 2004-05-27 14:59 ` Volker Quetschke
2004-05-27 15:31 ` Igor Pechtchanski
0 siblings, 1 reply; 12+ messages in thread
From: Volker Quetschke @ 2004-05-27 14:59 UTC (permalink / raw)
To: cygwin
[-- Attachment #1: Type: text/plain, Size: 437 bytes --]
Just FYI and for the archives:
> Any ideas how to remove the nul files? Really, I don't want to
> format my disk because of this.
You can fool NTFS into not doing reserve-word checking with:
DEL \\.\c:\somedir\nul
You propably have to use the correct quotes, or use cmd.exe,
like I did.
Volker
--
PGP/GPG key (ID: 0x9F8A785D) available from wwwkeys.de.pgp.net
key-fingerprint 550D F17E B082 A3E9 F913 9E53 3D35 C9BA 9F8A 785D
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 254 bytes --]
^ permalink raw reply [flat|nested] 12+ messages in thread
* RE: rm hangs on illegal filename nul
2004-05-27 14:42 ` Volker Quetschke
@ 2004-05-27 15:02 ` Dave Korn
2004-05-27 15:03 ` Dave Korn
0 siblings, 1 reply; 12+ messages in thread
From: Dave Korn @ 2004-05-27 15:02 UTC (permalink / raw)
To: cygwin
> -----Original Message-----
> From: cygwin-owner On Behalf Of Volker Quetschke
> Sent: 27 May 2004 15:32
> 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.
Nope, it's a way of saying "The workaround is not to create files with the
names of special DOS devices in the first place"! [That's the difference
between a workaround and a solution...]
> 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 :-(
How about
cmd /c 'del nu?.*'
Does that get it?
cheers,
DaveK
--
Can't think of a witty .sigline today....
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
^ permalink raw reply [flat|nested] 12+ messages in thread
* RE: rm hangs on illegal filename nul
2004-05-27 15:02 ` Dave Korn
@ 2004-05-27 15:03 ` Dave Korn
0 siblings, 0 replies; 12+ messages in thread
From: Dave Korn @ 2004-05-27 15:03 UTC (permalink / raw)
To: cygwin
> -----Original Message-----
> From: cygwin-owner On Behalf Of Dave Korn
> Sent: 27 May 2004 15:43
> How about
>
> cmd /c 'del nu?.*'
>
> Does that get it?
Nope, it doesn't. Volker's technique is the right answer.
cheers,
DaveK
--
Can't think of a witty .sigline today....
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: redirection can create nul files - Was: rm hangs on illegal filename nul
2004-05-27 14:59 ` Volker Quetschke
@ 2004-05-27 15:31 ` Igor Pechtchanski
2004-05-27 15:54 ` Volker Quetschke
0 siblings, 1 reply; 12+ messages in thread
From: Igor Pechtchanski @ 2004-05-27 15:31 UTC (permalink / raw)
To: Volker Quetschke; +Cc: cygwin
On Thu, 27 May 2004, Volker Quetschke wrote:
> Just FYI and for the archives:
>
> > Any ideas how to remove the nul files? Really, I don't want to
> > format my disk because of this.
> You can fool NTFS into not doing reserve-word checking with:
>
> DEL \\.\c:\somedir\nul
>
> You propably have to use the correct quotes, or use cmd.exe,
> like I did.
>
> Volker
A couple more datapoints:
- You can also create "nul" by "touch nul".
- You can use forward slashes, so "rm //./c:/somedir/nul" works.
- For me (on Win2k SP3), "rm nul" doesn't hang, but doesn't do anything
either.
$ uname -a
CYGWIN_NT-5.0 pechtcha 1.5.10(0.116/4/2) 2004-05-25 22:07 i686 unknown unknown Cygwin
Igor
--
http://cs.nyu.edu/~pechtcha/
|\ _,,,---,,_ pechtcha@cs.nyu.edu
ZZZzz /,`.-'`' -. ;-;;,_ igor@watson.ibm.com
|,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D.
'---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow!
"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster." -- Patrick Naughton
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: redirection can create nul files - Was: rm hangs on illegal filename nul
2004-05-27 15:31 ` Igor Pechtchanski
@ 2004-05-27 15:54 ` Volker Quetschke
2004-05-27 16:22 ` Christopher Faylor
0 siblings, 1 reply; 12+ messages in thread
From: Volker Quetschke @ 2004-05-27 15:54 UTC (permalink / raw)
To: cygwin
[-- Attachment #1: Type: text/plain, Size: 429 bytes --]
Hi Igor,
> A couple more datapoints:
>
> - You can also create "nul" by "touch nul".
> - You can use forward slashes, so "rm //./c:/somedir/nul" works.
> - For me (on Win2k SP3), "rm nul" doesn't hang, but doesn't do anything
> either.
Here neither, but "rm -rf somedir" hangs.
Volker
--
PGP/GPG key (ID: 0x9F8A785D) available from wwwkeys.de.pgp.net
key-fingerprint 550D F17E B082 A3E9 F913 9E53 3D35 C9BA 9F8A 785D
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 254 bytes --]
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: redirection can create nul files - Was: rm hangs on illegal filename nul
2004-05-27 15:54 ` Volker Quetschke
@ 2004-05-27 16:22 ` Christopher Faylor
2004-05-27 16:31 ` Igor Pechtchanski
0 siblings, 1 reply; 12+ messages in thread
From: Christopher Faylor @ 2004-05-27 16:22 UTC (permalink / raw)
To: cygwin
On Thu, May 27, 2004 at 11:39:22AM -0400, Volker Quetschke wrote:
>Igor wrote:
>>A couple more datapoints:
>>
>>- You can also create "nul" by "touch nul".
>>- You can use forward slashes, so "rm //./c:/somedir/nul" works.
>>- For me (on Win2k SP3), "rm nul" doesn't hang, but doesn't do anything
>> either.
>Here neither, but "rm -rf somedir" hangs.
Hasn't that point been made several times?
Are we starting an email loop now to correspond to the hang?
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: redirection can create nul files - Was: rm hangs on illegal filename nul
2004-05-27 16:22 ` Christopher Faylor
@ 2004-05-27 16:31 ` Igor Pechtchanski
0 siblings, 0 replies; 12+ messages in thread
From: Igor Pechtchanski @ 2004-05-27 16:31 UTC (permalink / raw)
To: cygwin
On Thu, 27 May 2004, Christopher Faylor wrote:
> On Thu, May 27, 2004 at 11:39:22AM -0400, Volker Quetschke wrote:
> >Igor wrote:
> >>A couple more datapoints:
> >>
> >>- You can also create "nul" by "touch nul".
> >>- You can use forward slashes, so "rm //./c:/somedir/nul" works.
> >>- For me (on Win2k SP3), "rm nul" doesn't hang, but doesn't do anything
> >> either.
> >Here neither, but "rm -rf somedir" hangs.
>
> Hasn't that point been made several times?
> Are we starting an email loop now to correspond to the hang?
My bad. I misread the original message. The first two points, however,
still remain relevant.
Igor
--
http://cs.nyu.edu/~pechtcha/
|\ _,,,---,,_ pechtcha@cs.nyu.edu
ZZZzz /,`.-'`' -. ;-;;,_ igor@watson.ibm.com
|,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D.
'---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow!
"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster." -- Patrick Naughton
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2004-05-27 16:01 UTC | newest]
Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-05-27 13:42 rm hangs on illegal filename nul Volker Quetschke
2004-05-27 14:19 ` Dave Korn
2004-05-27 14:31 ` Vince Hoffman
2004-05-27 14:42 ` Volker Quetschke
2004-05-27 15:02 ` Dave Korn
2004-05-27 15:03 ` Dave Korn
2004-05-27 14:46 ` redirection can create nul files - Was: " Volker Quetschke
2004-05-27 14:59 ` Volker Quetschke
2004-05-27 15:31 ` Igor Pechtchanski
2004-05-27 15:54 ` Volker Quetschke
2004-05-27 16:22 ` Christopher Faylor
2004-05-27 16:31 ` Igor Pechtchanski
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).