]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3/modules: linux_xfs_sgid_mkdirat() SMB_VFS_NEXT_FCHMOD => SMB_VFS_NEXT_CHMOD
authorNoel Power <noel.power@suse.com>
Thu, 8 Apr 2021 10:24:04 +0000 (11:24 +0100)
committerNoel Power <npower@samba.org>
Sun, 11 Apr 2021 22:27:34 +0000 (22:27 +0000)
Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/modules/vfs_linux_xfs_sgid.c

index e55734f806faea690b89ff9f2b07b86cd98b22fb..4f07ceab09298ea139d31edaa502566e1d387f10 100644 (file)
@@ -94,7 +94,7 @@ static int linux_xfs_sgid_mkdirat(vfs_handle_struct *handle,
         * return success. What can you do...
         */
        become_root();
-       res = SMB_VFS_NEXT_CHMOD(handle, fname, fname->st.st_ex_mode);
+       res = SMB_VFS_NEXT_FCHMOD(handle, smb_fname->fsp, fname->st.st_ex_mode);
        unbecome_root();
 
        if (res == -1) {