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

vlendec at samba.org vlendec at samba.org
Mon May 22 13:30:33 GMT 2006


Author: vlendec
Date: 2006-05-22 13:30:32 +0000 (Mon, 22 May 2006)
New Revision: 15801

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

Log:
Fix an error path. Inevitably I broke something...
Modified:
   trunk/source/smbd/open.c


Changeset:
Modified: trunk/source/smbd/open.c
===================================================================
--- trunk/source/smbd/open.c	2006-05-22 10:41:21 UTC (rev 15800)
+++ trunk/source/smbd/open.c	2006-05-22 13:30:32 UTC (rev 15801)
@@ -1445,7 +1445,7 @@
 
 			if (!NT_STATUS_IS_OK(fsp_open) && errno) {
 				/* Default error. */
-				fsp_open = NT_STATUS_ACCESS_DENIED;
+				status = NT_STATUS_ACCESS_DENIED;
 			}
 
 			/* 
@@ -1498,10 +1498,10 @@
 				 * We have detected a sharing violation here
 				 * so return the correct error code
 				 */
-				return NT_STATUS_SHARING_VIOLATION;
+				status = NT_STATUS_SHARING_VIOLATION;
 			}
 			file_free(fsp);
-			return fsp_open;
+			return status;
 		}
 
 		/*



More information about the samba-cvs mailing list