1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-26 10:04:02 +03:00

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)
This commit is contained in:
Jeremy Allison 2005-09-10 00:47:31 +00:00 committed by Gerald (Jerry) Carter
parent 1ff0de8b6d
commit d99d15446a

View File

@ -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. */