From: Jeremy Allison Date: Thu, 20 Jun 2019 18:43:17 +0000 (-0700) Subject: s3: smbd: Posix ACLs. Now we know we have a handle, always use VFS_FCHMOD instead... X-Git-Tag: ldb-2.0.5~227 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=78bdbfbf54f8cecea37d8a109e8dcfc7761a196a;p=thirdparty%2Fsamba.git s3: smbd: Posix ACLs. Now we know we have a handle, always use VFS_FCHMOD instead of VFS_CHMOD. Signed-off-by: Jeremy Allison Reviewed-by: Volker Lendecke --- diff --git a/source3/smbd/posix_acls.c b/source3/smbd/posix_acls.c index 4393ef72de4..e0df84bc3f0 100644 --- a/source3/smbd/posix_acls.c +++ b/source3/smbd/posix_acls.c @@ -3952,8 +3952,7 @@ NTSTATUS set_nt_acl(files_struct *fsp, uint32_t security_info_sent, const struct if (set_acl_as_root) { become_root(); } - sret = SMB_VFS_CHMOD(conn, fsp->fsp_name, - posix_perms); + sret = SMB_VFS_FCHMOD(fsp, posix_perms); if (set_acl_as_root) { unbecome_root(); } @@ -3966,9 +3965,7 @@ NTSTATUS set_nt_acl(files_struct *fsp, uint32_t security_info_sent, const struct fsp_str_dbg(fsp))); become_root(); - sret = SMB_VFS_CHMOD(conn, - fsp->fsp_name, - posix_perms); + sret = SMB_VFS_FCHMOD(fsp, posix_perms); unbecome_root(); }