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

vlendec at samba.org vlendec at samba.org
Mon Jan 8 14:08:34 GMT 2007


Author: vlendec
Date: 2007-01-08 14:08:34 +0000 (Mon, 08 Jan 2007)
New Revision: 20608

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

Log:
ENOENT->NT_STATUS_OBJECT_NAME_NOT_FOUND is covered in the standard unix error mapping table
Modified:
   branches/SAMBA_3_0/source/smbd/trans2.c


Changeset:
Modified: branches/SAMBA_3_0/source/smbd/trans2.c
===================================================================
--- branches/SAMBA_3_0/source/smbd/trans2.c	2007-01-08 13:21:43 UTC (rev 20607)
+++ branches/SAMBA_3_0/source/smbd/trans2.c	2007-01-08 14:08:34 UTC (rev 20608)
@@ -2711,12 +2711,8 @@
 	DEBUG(10,("set_bad_path_error: err = %d bad_path = %d\n",
 			err, (int)bad_path ));
 
-	if(err == ENOENT) {
-		if (bad_path) {
-			return ERROR_NT(NT_STATUS_OBJECT_PATH_NOT_FOUND);
-		} else {
-			return ERROR_NT(NT_STATUS_OBJECT_NAME_NOT_FOUND);
-		}
+	if ((err == ENOENT) && bad_path) {
+		return ERROR_NT(NT_STATUS_OBJECT_PATH_NOT_FOUND);
 	}
 	return UNIXERROR(def_class,def_code);
 }



More information about the samba-cvs mailing list