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 <[EMAIL PROTECTED]>.
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. */

Reply via email to