Created attachment 11343 [details] smb.conf used on a slackware 64 server File in Root directory can not be deleted using the MS DOS Client 3.0. For example: Typing on the DOS Console mkdir ADIR ENTER KEY CD ADIR ENTER KEY copy con A ENTER KEY Some garbage Text^Z F6 KEY Followed by ENTER KEY del *.* ENTER KEY This is followed by Are you sure (Y/N)?y Pressing Y and enter is then followed by File not Found del A works fine. I tested this on a slackware 64 bit as well as a 32 bit. Repeating the same operations using a windows 7 client on a mapped drive work. Regards, Adan
Please upload wireshark trace and debug level 10 log between client and server. Thanks ! Jeremy.
Created attachment 11417 [details] tar gzip of log level 10
Created attachment 11418 [details] Wire Shark Capture I mounted \\server\drived created a file with copy con A tried deleting it with del *.* Finally deleted it using del A
OK, I think I've spotted the bug. Missing map of dtype from zero -> FILE_ATTRIBUTE_NORMAL in the wildcard delete case. Patch to follow.
Created attachment 11507 [details] git-am fix for master. Submitted to samba-technical.
Created attachment 11514 [details] Fixed patch for mater (fixes samba3.raw.unlink error). Ah - fails on source4/torture/raw/unlink.c, but that test code is incorrect anyway (it adds a special return check for NT_STATUS_NO_SUCH_FILE if the server is Samba3 - Samba should return NT_STATUS_OK here as Windows does). That's kind of funny - as it means we already had a proper test for this but instead of noticing and fixing the bug in the server, we hacked in a "if Samba3" workaround for our incorrect response :-) :-). Updated patch attached. Andreas if you could just review the samba3.raw.unlink fixup (last hunk of the patch) it's good to go ! Cheers (and sorry about the error), Jeremy.
Created attachment 11519 [details] git-am fix for 4.3.x, 4.2.x. Cherry-pick from master.
Comment on attachment 11519 [details] git-am fix for 4.3.x, 4.2.x. LGTM
Karolin, please add the patches to the next 4.3 and 4.2 release. Thanks!
(In reply to Andreas Schneider from comment #9) Pushed to autobuild-v4-[2|3]-test.
(In reply to Karolin Seeger from comment #10) Pushed to both branches. Closing out bug report. Thanks!