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

vlendec at samba.org vlendec at samba.org
Wed Jun 28 22:23:02 GMT 2006


Author: vlendec
Date: 2006-06-28 22:23:00 +0000 (Wed, 28 Jun 2006)
New Revision: 16658

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

Log:
We need to get rid of most calls to set_bad_path_error now that we have
reasonable status returns. Fix the iTunes error. Jerry, can you check?

Volker

Modified:
   trunk/source/smbd/nttrans.c


Changeset:
Modified: trunk/source/smbd/nttrans.c
===================================================================
--- trunk/source/smbd/nttrans.c	2006-06-28 22:09:03 UTC (rev 16657)
+++ trunk/source/smbd/nttrans.c	2006-06-28 22:23:00 UTC (rev 16658)
@@ -709,7 +709,7 @@
 
 		if(!NT_STATUS_IS_OK(status)) {
 			END_PROFILE(SMBntcreateX);
-			return set_bad_path_error(errno, bad_path, outbuf, ERRDOS,ERRnoaccess);
+			return ERROR_NT(status);
 		}
 	} else {
 		/*
@@ -1351,7 +1351,7 @@
 		if(!NT_STATUS_IS_OK(status)) {
 			talloc_destroy(ctx);
 			restore_case_semantics(conn, file_attributes);
-			return set_bad_path_error(errno, bad_path, outbuf, ERRDOS,ERRnoaccess);
+			return ERROR_NT(status);
 		}
 
 	} else {
@@ -1392,7 +1392,7 @@
 				if(!NT_STATUS_IS_OK(status)) {
 					talloc_destroy(ctx);
 					restore_case_semantics(conn, file_attributes);
-					return set_bad_path_error(errno, bad_path, outbuf, ERRDOS,ERRnoaccess);
+					return ERROR_NT(status);
 				}
 			} else {
 				talloc_destroy(ctx);
@@ -1401,7 +1401,7 @@
 					/* We have re-scheduled this call. */
 					return -1;
 				}
-				return set_bad_path_error(errno, bad_path, outbuf, ERRDOS,ERRnoaccess);
+				return ERROR_NT(status);
 			}
 		} 
 	}



More information about the samba-cvs mailing list