svn commit: samba r15721 - in trunk/source/smbd: .
vlendec at samba.org
vlendec at samba.org
Fri May 19 19:54:41 GMT 2006
Author: vlendec
Date: 2006-05-19 19:54:39 +0000 (Fri, 19 May 2006)
New Revision: 15721
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=15721
Log:
Make us actually survive BASE-SAMBA3ERROR
Modified:
trunk/source/smbd/reply.c
Changeset:
Modified: trunk/source/smbd/reply.c
===================================================================
--- trunk/source/smbd/reply.c 2006-05-19 19:50:33 UTC (rev 15720)
+++ trunk/source/smbd/reply.c 2006-05-19 19:54:39 UTC (rev 15721)
@@ -3831,6 +3831,17 @@
status = mkdir_internal(conn, directory,bad_path);
if (!NT_STATUS_IS_OK(status)) {
+
+ if (NT_STATUS_EQUAL(status, NT_STATUS_OBJECT_NAME_COLLISION) &&
+ !use_nt_status()) {
+ /*
+ * Yes, in the DOS error code case we get a
+ * ERRDOS:ERRnoaccess here. See BASE-SAMBA3ERROR
+ * samba4 torture test.
+ */
+ status = NT_STATUS_DOS(ERRDOS, ERRnoaccess);
+ }
+
END_PROFILE(SMBmkdir);
return ERROR_NT(status);
}
More information about the samba-cvs
mailing list