git.samba.org
/
mat
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cb40594
)
Make sure we reset fsp->initial_allocation_size to zero if we didn't create the file.
author
Jeremy Allison
<jra@samba.org>
Wed, 11 Jul 2012 23:35:32 +0000
(16:35 -0700)
committer
Jeremy Allison
<jra@samba.org>
Thu, 12 Jul 2012 20:46:07 +0000
(22:46 +0200)
This will become important as we set fsp->initial_allocation_size before
create.
source3/smbd/open.c
patch
|
blob
|
history
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)) &&