summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2005-09-10 00:47:31 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:03:33 -0500
commitd99d15446acfc926a2375af6d681420781feffcb (patch)
tree2fc07d75cec2315f3e021cccad634390b11994e7
parent1ff0de8b6d3de21325d92e7ebffbc74602a13c49 (diff)
downloadsamba-d99d15446acfc926a2375af6d681420781feffcb.tar.gz
samba-d99d15446acfc926a2375af6d681420781feffcb.tar.bz2
samba-d99d15446acfc926a2375af6d681420781feffcb.zip
r10136: Fix for bug #3060 from Leo Weppelman <leo@wau.mis.ah.nl>.
Ensure SMBcreate truncates the file if it exists. Jeremy. (This used to be commit 9014b0ddcbd87c98613f06033718e4091e3be21c)
-rw-r--r--source3/smbd/reply.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c
index 9050006653..2d9a31032b 100644
--- a/source3/smbd/reply.c
+++ b/source3/smbd/reply.c
@@ -1610,7 +1610,7 @@ int reply_mknew(connection_struct *conn, char *inbuf,char *outbuf, int dum_size,
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. */