]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
vfs_acl_common: factor out a variable declaration
authorRalph Boehme <slow@samba.org>
Wed, 4 Oct 2017 10:51:29 +0000 (12:51 +0200)
committerJeremy Allison <jra@samba.org>
Mon, 9 Oct 2017 21:01:18 +0000 (23:01 +0200)
Just some refactoring, no change in behaviour.

Bug: https://bugzilla.samba.org/show_bug.cgi?id=7933

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/modules/vfs_acl_common.c

index c4849b6061fe65d213694e0a8318ddbbedd04b01..55f3141dfa754caa3acc5d7fc55d384b7a02875a 100644 (file)
@@ -1018,8 +1018,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;
        }