git.samba.org
/
metze
/
samba
/
wip.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Make sure we reset fsp->initial_allocation_size to zero if we didn't create the file.
[metze/samba/wip.git]
/
source3
/
smbd
/
open.c
diff --git
a/source3/smbd/open.c
b/source3/smbd/open.c
index 0f4a5889995da1721e76b0df7f0ca7279a06c4b6..b5d8466e7e2b75e83f5e18fb7ee161367730f805 100644
(file)
--- a/
source3/smbd/open.c
+++ b/
source3/smbd/open.c
@@
-3727,6
+3727,8
@@
static NTSTATUS create_file_unixpath(connection_struct *conn,
fsp->initial_allocation_size = smb_roundup(
fsp->conn, (uint64_t)fsp->fsp_name->st.st_ex_size);
}
+ } else {
+ fsp->initial_allocation_size = 0;
}
if ((info == FILE_WAS_CREATED) && lp_nt_acl_support(SNUM(conn)) &&