diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c index 2cef4d01a01..ace0d71dbbe 100644 --- a/source3/smbd/reply.c +++ b/source3/smbd/reply.c @@ -1539,8 +1539,8 @@ void reply_setatr(struct smb_request *req) else mode &= ~FILE_ATTRIBUTE_DIRECTORY; - status = check_access(conn, NULL, smb_fname, - FILE_WRITE_ATTRIBUTES); + status = smbd_check_access_rights( + conn, smb_fname, false, FILE_WRITE_ATTRIBUTES); if (!NT_STATUS_IS_OK(status)) { reply_nterror(req, status); goto out;