rd /s, "can't find the file specified" (internal reference b1996)

Nir Soffer nirs at exanet.com
Sun Mar 16 11:58:08 GMT 2003


Hi!

Our QA department stumbled across the following problem:

>From the W2K commandline rd /s on a large directory reports: "The system cannot find the file specified." on a rather large amount of files. I've yet to figure out what the connection between them is, but I'm starting to believe they're files with spaces.

I've encountered this problem on Samba v3.0a20, v3.0a22, and latest Samba 3 CVS.

I did not encounter this problem on all that variants of Samba v2.2 I've tried (Specifically v2.2.1a, and some more I don't really remember now). I didn't even encounter it on v2.0.7.

To reproduce, simply do a:

net use * \\server\share
D: (or whatever drive you got)
mkdir bug
cd bug
xcopy /e C:\winnt
cd ..
rd /s bug

Apparently del *.* is having problems with these files as well, and regular del "Soap Bubbles.bmp" also returned with the same error.

In case I wasn't clear, this happens only via the command line, and NOT via the Windows Explorer. Deleting from there works just fine.

Attached is an l10 log of me trying to delete a file...

Anyone have any ideas, or anything he wants me to try?

For reference, the internal bug number of this at Exanet is Bug 1996.

Thanks,
Nir.

--
Nir Soffer -=- Exanet Inc. -=- http://www.evilpuppy.org
"Father, why are all the children weeping? / They are merely crying son
 O, are they merely crying, father? / Yes, true weeping is yet to come"
        -- Nick Cave and the Bad Seeds, The Weeping Song
 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: log.smbd.weasel
Type: application/octet-stream
Size: 81902 bytes
Desc: log.smbd.weasel
Url : http://lists.samba.org/archive/samba-technical/attachments/20030316/c3c3ef9d/log.smbd.obj


More information about the samba-technical mailing list