smbd: return the correct error in can_rename()
authorRalph Boehme <slow@samba.org>
Tue, 19 Dec 2023 12:06:55 +0000 (13:06 +0100)
committerJule Anger <janger@samba.org>
Tue, 9 Jan 2024 12:13:13 +0000 (12:13 +0000)
commitb838378024966ac75119d6426380178f8c482a16
tree98bf38a934e1b8a674bfdec48d76eedaf6f90413
parenta510fc46bcd0fc6e78d51eebdbbb7fbb44a134de
smbd: return the correct error in can_rename()

This is what Windows returns for this case.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=13688

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
(cherry picked from commit 276c5bd851ab6ab818a49d9c47f6b96de8024778)
source3/smbd/smb2_reply.c