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

jra at samba.org jra at samba.org
Sat Sep 10 00:47:45 GMT 2005


Author: jra
Date: 2005-09-10 00:47:44 +0000 (Sat, 10 Sep 2005)
New Revision: 10137

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

Log:
Fix for bug #3060 from Leo Weppelman <leo at wau.mis.ah.nl>.
Ensure SMBcreate truncates the file if it exists.
Jeremy.

Modified:
   trunk/source/smbd/reply.c


Changeset:
Modified: trunk/source/smbd/reply.c
===================================================================
--- trunk/source/smbd/reply.c	2005-09-10 00:47:31 UTC (rev 10136)
+++ trunk/source/smbd/reply.c	2005-09-10 00:47:44 UTC (rev 10137)
@@ -1609,7 +1609,7 @@
 		create_disposition = FILE_CREATE;
 	} else {
 		/* Create if file doesn't exist, truncate if it does. */
-		create_disposition = FILE_OPEN_IF;
+		create_disposition = FILE_OVERWRITE_IF;
 	}
 
 	/* Open file using ntcreate. */



More information about the samba-cvs mailing list