s3: smbd: change_file_owner_to_parent_fsp(). Don't re-stat the pathref.
authorJeremy Allison <jra@samba.org>
Wed, 9 Jun 2021 23:43:04 +0000 (16:43 -0700)
committerRalph Boehme <slow@samba.org>
Fri, 18 Jun 2021 16:32:28 +0000 (16:32 +0000)
commitc8e8633b98a2d68e51b0b271bf6f0ee36ddb6283
tree25b2a070161efa02889d060fafc5088ae0e93b2f
parentbdc749ca7e27b173f0c6e9f319d90097c5413b9a
s3: smbd: change_file_owner_to_parent_fsp(). Don't re-stat the pathref.

Optimization now becomes clear. We already have a valid stat of the parent
directory so we don't need to re-do a system call.

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