From: Ralph Boehme Date: Mon, 14 Dec 2020 10:21:05 +0000 (+0100) Subject: posix_acls: use pathref fsp in copy_access_posix_acl() X-Git-Tag: samba-4.14.0rc1~188 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6efe41c49cbcf3d6de95f33983f59aecd6a1ee31;p=thirdparty%2Fsamba.git posix_acls: use pathref fsp in copy_access_posix_acl() Signed-off-by: Ralph Boehme Reviewed-by: Jeremy Allison --- diff --git a/source3/smbd/posix_acls.c b/source3/smbd/posix_acls.c index 569f75e3811..041305d4aec 100644 --- a/source3/smbd/posix_acls.c +++ b/source3/smbd/posix_acls.c @@ -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: