summaryrefslogtreecommitdiff
path: root/source3/modules
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2015-08-12 17:48:41 +0200
committerVolker Lendecke <vl@samba.org>2015-08-20 12:49:22 +0200
commit22e1fb34669d91dacb1a08227896560aefbb19bb (patch)
tree9abed0426d8ffa4acf784a3ac926314d38017fee /source3/modules
parent796c77d43dd1df8ff5df14397e787411d8407797 (diff)
downloadsamba-22e1fb34669d91dacb1a08227896560aefbb19bb.tar.gz
vfs: Add some {}
The "mode = " from a very casual view looked as if it was part of the if-condition Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Ira Cooper <ira@samba.org>
Diffstat (limited to 'source3/modules')
-rw-r--r--source3/modules/vfs_default.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/modules/vfs_default.c b/source3/modules/vfs_default.c
index 10d0f3b62c8..ac1052edb30 100644
--- a/source3/modules/vfs_default.c
+++ b/source3/modules/vfs_default.c
@@ -471,8 +471,9 @@ static int vfswrap_mkdir(vfs_handle_struct *handle, const char *path, mode_t mod
if (lp_inherit_acls(SNUM(handle->conn))
&& parent_dirname(talloc_tos(), path, &parent, NULL)
- && (has_dacl = directory_has_default_acl(handle->conn, parent)))
+ && (has_dacl = directory_has_default_acl(handle->conn, parent))) {
mode = (0777 & lp_directory_mask(SNUM(handle->conn)));
+ }
TALLOC_FREE(parent);