]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
posix_acls: use pathref fsp in copy_access_posix_acl()
authorRalph Boehme <slow@samba.org>
Mon, 14 Dec 2020 10:21:05 +0000 (11:21 +0100)
committerJeremy Allison <jra@samba.org>
Thu, 17 Dec 2020 18:56:29 +0000 (18:56 +0000)
Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/smbd/posix_acls.c

index 569f75e3811043fdec429567bd33ba1729fff7e7..041305d4aec31442b0bc01ac47685324cbc35b2f 100644 (file)
@@ -4095,7 +4095,7 @@ static int copy_access_posix_acl(connection_struct *conn,
        if ((ret = chmod_acl_internals(conn, posix_acl, mode)) == -1)
                goto done;
 
-       ret = SMB_VFS_SYS_ACL_SET_FILE(conn, smb_fname_to,
+       ret = SMB_VFS_SYS_ACL_SET_FD(smb_fname_to->fsp,
                        SMB_ACL_TYPE_ACCESS, posix_acl);
 
  done: