From 775014bd9cc8717ad5bb2651ca1078833d149610 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Wed, 11 Jul 2012 16:35:32 -0700 Subject: Make sure we reset fsp->initial_allocation_size to zero if we didn't create the file. This will become important as we set fsp->initial_allocation_size before create. --- source3/smbd/open.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source3') diff --git a/source3/smbd/open.c b/source3/smbd/open.c index 0f4a588999..b5d8466e7e 100644 --- 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)) && -- cgit