svn commit: samba r20229 - in branches/SAMBA_3_0/source/smbd: .

vlendec at samba.org vlendec at samba.org
Sun Dec 17 18:41:44 GMT 2006


Author: vlendec
Date: 2006-12-17 18:41:44 +0000 (Sun, 17 Dec 2006)
New Revision: 20229

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=20229

Log:
Avoid a silly function call in mkdir_internal. None of the callers look at
errno, all go straight to ERROR_NT(status).

Volker

Modified:
   branches/SAMBA_3_0/source/smbd/reply.c


Changeset:
Modified: branches/SAMBA_3_0/source/smbd/reply.c
===================================================================
--- branches/SAMBA_3_0/source/smbd/reply.c	2006-12-17 18:30:44 UTC (rev 20228)
+++ branches/SAMBA_3_0/source/smbd/reply.c	2006-12-17 18:41:44 UTC (rev 20229)
@@ -3755,8 +3755,7 @@
 	
 	if(!CAN_WRITE(conn)) {
 		DEBUG(5,("mkdir_internal: failing create on read-only share %s\n", lp_servicename(SNUM(conn))));
-		errno = EACCES;
-		return map_nt_error_from_unix(errno);
+		return NT_STATUS_ACCESS_DENIED;
 	}
 
 	if (bad_path) {



More information about the samba-cvs mailing list