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:
parent
1ff0de8b6d
commit
d99d15446a
@ -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. */
|
||||
|
Loading…
x
Reference in New Issue
Block a user