]> git.ipfire.org Git - thirdparty/samba.git/commit
s3: smbd: Optimization in non_widelink_open(). Don't need to vfs_ChDir(parent_dir_fna...
authorJeremy Allison <jra@samba.org>
Wed, 16 Jun 2021 22:10:37 +0000 (15:10 -0700)
committerRalph Boehme <slow@samba.org>
Fri, 18 Jun 2021 17:21:31 +0000 (17:21 +0000)
commit5ae2d4e4d0fa3403bd571dbbbbf01cf84ddfa8f2
treea388570c92c96dbb0a0b3ddf0c40f50425b06ea8
parentc8e8633b98a2d68e51b0b271bf6f0ee36ddb6283
s3: smbd: Optimization in non_widelink_open(). Don't need to vfs_ChDir(parent_dir_fname) if parent is "."

Save several system calls if we're operating at the root of the share.

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
Autobuild-User(master): Ralph Böhme <slow@samba.org>
Autobuild-Date(master): Fri Jun 18 17:21:31 UTC 2021 on sn-devel-184
source3/smbd/open.c