s3: smbd: Fix rmdir_internals() to do an early return if lp_delete_veto_files() is...
authorJeremy Allison <jra@samba.org>
Mon, 25 Oct 2021 19:21:37 +0000 (12:21 -0700)
committerRalph Boehme <slow@samba.org>
Fri, 29 Oct 2021 14:02:34 +0000 (14:02 +0000)
commita37d16e7c55f85e3f2c9c8614755ea6307092d5f
tree106f720260f2c0de3353e5bc482728f7eea269da
parentf254be19d6501a4f573843af97963e350a9ee2ed
s3: smbd: Fix rmdir_internals() to do an early return if lp_delete_veto_files() is not set.

Fix the comments to match what the code actually does. The
exit at the end of the scan directory loop if we find a client
visible filename is a change in behavior, but the previous
behavior (not exist on visible filename, but delete it) was
a bug and in non-tested code. Now it's testd.

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

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/smbd/close.c