From: Ralph Boehme Date: Wed, 4 Oct 2017 10:51:29 +0000 (+0200) Subject: vfs_acl_common: factor out a variable declaration X-Git-Tag: samba-4.6.9~48 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=52de1638198b76e9d253dbed2e3327049c96344d;p=thirdparty%2Fsamba.git vfs_acl_common: factor out a variable declaration Just some refactoring, no change in behaviour. Bug: https://bugzilla.samba.org/show_bug.cgi?id=7933 Signed-off-by: Ralph Boehme Reviewed-by: Jeremy Allison (cherry picked from commit e62f90a6d15626a2e20ba92f5cd552101ec4afe0) --- diff --git a/source3/modules/vfs_acl_common.c b/source3/modules/vfs_acl_common.c index fa65fd19cfd..b887e0ac9b1 100644 --- a/source3/modules/vfs_acl_common.c +++ b/source3/modules/vfs_acl_common.c @@ -1056,8 +1056,9 @@ static NTSTATUS set_underlying_acl(vfs_handle_struct *handle, files_struct *fsp, uint32_t security_info_sent, bool chown_needed) { - NTSTATUS status = - SMB_VFS_NEXT_FSET_NT_ACL(handle, fsp, security_info_sent, psd); + NTSTATUS status; + + status = SMB_VFS_NEXT_FSET_NT_ACL(handle, fsp, security_info_sent, psd); if (!NT_STATUS_EQUAL(status, NT_STATUS_ACCESS_DENIED)) { return status; }