s3: smbd: In can_delete_file_in_directory(), move a fast-path exit to before any...
commit7e4a9a1e5f18db2ae77de944de75e3c6c3df9dc8
authorJeremy Allison <jra@samba.org>
Tue, 8 Jun 2021 18:03:24 +0000 (8 11:03 -0700)
committerRalph Boehme <slow@samba.org>
Wed, 9 Jun 2021 13:14:31 +0000 (9 13:14 +0000)
tree3c257cce96bde8f44d5df063b4840d2a1790ff9c
parent1e90d91b0334c9f6f1ca4fd08f107b71f06e8a19
s3: smbd: In can_delete_file_in_directory(), move a fast-path exit to before any pathname manipulation.

If we're root we always return true on a writable share.

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