[Samba] samba file deletion bug?

Gerald Carter jerry at samba.org
Wed May 1 14:55:02 GMT 2002

On Tue, 30 Apr 2002, C. J. wrote:

> Hi, I'm having a problem using the "rd /s" cmd.exe command from my win2k & 
> XP boxes to delete directories on SunOS 5.7 machine running Samba 2.2.3a.  
> All the files were created from win2k.  The problem is
> when I try "rd /s" on certain directories, I get incorrect error messages 
> that say:
> "The system cannot find the file specified.",
> and most surprisingly
> "Cannot create a file when that file already exists."!
> Running "rd /s" a second time on the same directory finishes the deletion 
> job, but this seems like a bug in either cmd.exe, win2k or samba.  The 
> problem seems to have to do with dirs that contain
> 2 files with long filenames that map to short filenames that differ only in 
> the last char of the extension.   See my example sequence of cmds to cmd.exe 
> below, I'm pretty sure the file sizes and contents are irrelevant.  This 
> isn't a new bug, I've been seeing it since samba 2.0.6.  Can anyone help me 
> here?

I cannot reproduce this bug using a win2ksp2 client nor 
an xp home box.  Can you test the latest SAMBA_2_2 cvs code

cheers, jerry
 Hewlett-Packard                                     http://www.hp.com
 SAMBA Team                                       http://www.samba.org
 --                                            http://www.plainjoe.org
 "Sam's Teach Yourself Samba in 24 Hours" 2ed.      ISBN 0-672-32269-2
 --"I never saved anything for the swim back." Ethan Hawk in Gattaca--

More information about the samba mailing list