smbd: use vfs_stat() in more places
authorRalph Boehme <slow@samba.org>
Wed, 25 Nov 2020 11:29:40 +0000 (12:29 +0100)
committerRalph Boehme <slow@samba.org>
Wed, 16 Dec 2020 09:08:31 +0000 (09:08 +0000)
commit985c1be5ccf40d0f5c85f42bc0d9bd0a15a86b59
treed32e992a4702170b59c8aaeb60f056e6f9222252
parent37e6783f417a176b264ef6506174c0bbfe74f405
smbd: use vfs_stat() in more places

This replaces the code in a bunch of places where we choose between stat() and
lstat() based on req->posix_pathname. The new code inside vfs_stat() is based on
checking the smb_fname flag SMB_FILENAME_POSIX_PATH.

req->posix_pathname is inherited from the global POSIX pathnames state and the
smb_fname flags is also inherited from that indirectly via the UCF flags.

Tl;dr: no change in behaviour. :)

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/modules/vfs_acl_tdb.c
source3/modules/vfs_default.c
source3/modules/vfs_streams_xattr.c
source3/smbd/filename.c
source3/smbd/open.c
source3/smbd/reply.c
source3/smbd/smb2_setinfo.c
source3/smbd/trans2.c