smbd: let unix_convert() fail early if initial stat fails with EACCES
authorRalph Boehme <slow@samba.org>
Wed, 22 Apr 2020 13:13:04 +0000 (15:13 +0200)
committerJeremy Allison <jra@samba.org>
Wed, 22 Apr 2020 21:08:39 +0000 (21:08 +0000)
commitbd90ca6f00b329e23100e8305fa461d452cf4651
treebfa547f7ab71b077fc36d213554c524b69ca698f
parentfa1087bc5a95c7743b85ee974a0bc276057d2068
smbd: let unix_convert() fail early if initial stat fails with EACCES

Doing directory scans on the path components is not going to change this, so
give up early. No change in behaviour, as we would just fail later in
get_real_filename() otherwise.

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Wed Apr 22 21:08:39 UTC 2020 on sn-devel-184
source3/smbd/filename.c