1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-22 22:04:08 +03:00

smbd: Fix a comment and an error message

Tested manually, but OBJECT_NAME_NOT_FOUND makes much more sense given
the new semantics of filename_convert_dirfsp.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
Volker Lendecke 2024-07-22 19:53:40 +02:00 committed by Jeremy Allison
parent cb67a70113
commit cfa24f0563

View File

@ -956,8 +956,11 @@ void reply_setatr(struct smb_request *req)
}
if (smb_fname->fsp == NULL) {
/* Can't set access rights on a symlink. */
reply_nterror(req, NT_STATUS_ACCESS_DENIED);
/*
* filename_convert_dirfsp only returns a NULL fsp for
* new files.
*/
reply_nterror(req, NT_STATUS_OBJECT_NAME_NOT_FOUND);
goto out;
}