s3: smbd: change_dir_owner_to_parent_fsp(). Don't re-stat the pathref.
authorJeremy Allison <jra@samba.org>
Wed, 9 Jun 2021 23:40:08 +0000 (16:40 -0700)
committerRalph Boehme <slow@samba.org>
Fri, 18 Jun 2021 16:32:28 +0000 (16:32 +0000)
commitf9022f658ba9925af894719197ad9cf224cac05a
tree3ce5ca8c06e505db3119387b9ac755e1997ced4a
parent610c3ff8744eafea5f98d4e335660c77a3a3caa1
s3: smbd: change_dir_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