]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3/modules: fake_acls_lchown use SMB_VFS_NEXT_FSET
authorNoel Power <noel.power@suse.com>
Fri, 19 Feb 2021 16:21:58 +0000 (16:21 +0000)
committerJeremy Allison <jra@samba.org>
Thu, 11 Mar 2021 17:50:30 +0000 (17:50 +0000)
Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/modules/vfs_fake_acls.c

index d0cfa01f8ddcb96b47b03d6765df9616c54a2587..716df540e479e411a673bd15c36e734fffa9baac 100644 (file)
@@ -444,8 +444,8 @@ static int fake_acls_lchown(vfs_handle_struct *handle,
                 * to.
                 */
                SIVAL(id_buf, 0, uid);
-               ret = SMB_VFS_NEXT_SETXATTR(handle,
-                               smb_fname,
+               ret = SMB_VFS_NEXT_FSETXATTR(handle,
+                               smb_fname->fsp,
                                FAKE_UID,
                                id_buf,
                                sizeof(id_buf),
@@ -456,8 +456,8 @@ static int fake_acls_lchown(vfs_handle_struct *handle,
        }
        if (gid != -1) {
                SIVAL(id_buf, 0, gid);
-               ret = SMB_VFS_NEXT_SETXATTR(handle,
-                               smb_fname,
+               ret = SMB_VFS_NEXT_FSETXATTR(handle,
+                               smb_fname->fsp,
                                FAKE_GID,
                                id_buf,
                                sizeof(id_buf),