From: Ralph Boehme Date: Mon, 14 Dec 2020 10:21:45 +0000 (+0100) Subject: posix_acls: use SMB_VFS_SYS_ACL_SET_FD() in set_unix_posix_default_acl() X-Git-Tag: samba-4.14.0rc1~209 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=33cbe40c4190f90039bb59a23ea0316b5ed8c507;p=thirdparty%2Fsamba.git posix_acls: use SMB_VFS_SYS_ACL_SET_FD() in set_unix_posix_default_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 7d9cd8e538f..569f75e3811 100644 --- a/source3/smbd/posix_acls.c +++ b/source3/smbd/posix_acls.c @@ -4340,10 +4340,9 @@ NTSTATUS set_unix_posix_default_acl(connection_struct *conn, return map_nt_error_from_unix(errno); } - ret = SMB_VFS_SYS_ACL_SET_FILE(conn, - fsp->fsp_name, - SMB_ACL_TYPE_DEFAULT, - def_acl); + ret = SMB_VFS_SYS_ACL_SET_FD(fsp, + SMB_ACL_TYPE_DEFAULT, + def_acl); if (ret == -1) { status = map_nt_error_from_unix(errno); DBG_INFO("acl_set_file failed on directory %s (%s)\n",