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>
}
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;
}