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

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

Log:
Fix for bug #3060 from Leo Weppelman <[EMAIL PROTECTED]>.
Ensure SMBcreate truncates the file if it exists.
Jeremy.

Modified:
   branches/SAMBA_3_0/source/smbd/reply.c


Changeset:
Modified: branches/SAMBA_3_0/source/smbd/reply.c
===================================================================
--- branches/SAMBA_3_0/source/smbd/reply.c      2005-09-09 21:49:49 UTC (rev 
10135)
+++ branches/SAMBA_3_0/source/smbd/reply.c      2005-09-10 00:47:31 UTC (rev 
10136)
@@ -1610,7 +1610,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