svn commit: samba r16763 - in trunk/source/smbd: .

jra at samba.org jra at samba.org
Sun Jul 2 21:27:21 GMT 2006


Author: jra
Date: 2006-07-02 21:27:21 +0000 (Sun, 02 Jul 2006)
New Revision: 16763

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

Log:
Don't do the crazy error code change for POSIX clients.
Jeremy.

Modified:
   trunk/source/smbd/reply.c


Changeset:
Modified: trunk/source/smbd/reply.c
===================================================================
--- trunk/source/smbd/reply.c	2006-07-02 21:24:00 UTC (rev 16762)
+++ trunk/source/smbd/reply.c	2006-07-02 21:27:21 UTC (rev 16763)
@@ -426,13 +426,13 @@
 		*err = check_path_syntax_posix(dest, tmppath);
 	} else {
 		*err = check_path_syntax_wcard(dest, tmppath, contains_wcard);
-	}
 
-	/* Strange DOS error code semantics... */
-	if (!(SVAL(inbuf,smb_flg2) & FLAGS2_32_BIT_ERROR_CODES)) {
-		if (NT_STATUS_EQUAL(NT_STATUS_OBJECT_NAME_INVALID,*err)) {
-			/* We need to map to ERRbadpath */
-			*err = NT_STATUS_OBJECT_PATH_NOT_FOUND;
+		/* Strange DOS error code semantics... */
+		if (!(SVAL(inbuf,smb_flg2) & FLAGS2_32_BIT_ERROR_CODES)) {
+			if (NT_STATUS_EQUAL(NT_STATUS_OBJECT_NAME_INVALID,*err)) {
+				/* We need to map to ERRbadpath */
+				*err = NT_STATUS_OBJECT_PATH_NOT_FOUND;
+			}
 		}
 	}
 
@@ -461,13 +461,13 @@
 		*err = check_path_syntax_posix(dest, tmppath);
 	} else {
 		*err = check_path_syntax(dest, tmppath);
-	}
 
-	/* Strange DOS error code semantics... */
-	if (!(SVAL(inbuf,smb_flg2) & FLAGS2_32_BIT_ERROR_CODES)) {
-		if (NT_STATUS_EQUAL(NT_STATUS_OBJECT_NAME_INVALID,*err)) {
-			/* We need to map to ERRbadpath */
-			*err = NT_STATUS_OBJECT_PATH_NOT_FOUND;
+		/* Strange DOS error code semantics... */
+		if (!(SVAL(inbuf,smb_flg2) & FLAGS2_32_BIT_ERROR_CODES)) {
+			if (NT_STATUS_EQUAL(NT_STATUS_OBJECT_NAME_INVALID,*err)) {
+				/* We need to map to ERRbadpath */
+				*err = NT_STATUS_OBJECT_PATH_NOT_FOUND;
+			}
 		}
 	}
 



More information about the samba-cvs mailing list