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, 16 Jan 2024 09:09:15 +0000 (09:09 +0000)
commitc8e1d26cea525c6d0642923bf1b5196813145744
treeefe69edc9c0aa34bee0983f0b88ae94f59042a5e
parent7080c5b4850c39c63e61d458d5928151fa7f1c00
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