From 6efe41c49cbcf3d6de95f33983f59aecd6a1ee31 Mon Sep 17 00:00:00 2001 From: Ralph Boehme Date: Mon, 14 Dec 2020 11:21:05 +0100 Subject: [PATCH] posix_acls: use pathref fsp in copy_access_posix_acl() Signed-off-by: Ralph Boehme Reviewed-by: Jeremy Allison --- source3/smbd/posix_acls.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- 2.47.2