[Samba] samba file deletion bug?

C. J. dusk47 at hotmail.com
Tue Apr 30 15:52:02 GMT 2002


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?

Thanks.
----------
V:\>dir /X t2
Volume in drive V is panda
Volume Serial Number is 04E2-043A

Directory of V:\t2

04/30/2002  03:38 PM    <DIR>                       .
04/30/2002  03:37 PM    <DIR>                       ..
04/22/2002  01:21 AM            24,952 NOTIF~4E.PY  NotifyCategory.py
04/22/2002  01:22 AM            30,701 NOTIF~4E.PYC NotifyCategory.pyc
04/22/2002  01:21 AM               329 NOTIF~4E.PY  NotifySeverity.py
04/22/2002  01:22 AM               424 NOTIF~4E.PYC NotifySeverity.pyc
               4 File(s)         56,406 bytes
               2 Dir(s)  17,658,019,840 bytes free

V:\>rd /s /q t2
t2\NotifySeverity.py - The system cannot find the file specified.
t2\NotifySeverity.pyc - The system cannot find the file specified.
Cannot create a file when that file already exists.

V:\>dir /X t2
Volume in drive V is panda
Volume Serial Number is 04E2-043A

Directory of V:\t2

04/30/2002  03:39 PM    <DIR>                       .
04/30/2002  03:37 PM    <DIR>                       ..
04/22/2002  01:21 AM            24,952 NOTIF~4E.PY  NotifyCategory.py
04/22/2002  01:22 AM            30,701 NOTIF~4E.PYC NotifyCategory.pyc
               2 File(s)         55,653 bytes
               2 Dir(s)  17,658,019,840 bytes free

V:\>rd /s /q t2

V:\>dir t2
Volume in drive V is panda
Volume Serial Number is 04E2-043A

Directory of V:\

File Not Found

_________________________________________________________________
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx





More information about the samba mailing list