s3: smbd: In setup_close_full_information(), remove unneeded vfs_stat().
authorJeremy Allison <jra@samba.org>
Wed, 15 Dec 2021 18:41:39 +0000 (10:41 -0800)
committerJeremy Allison <jra@samba.org>
Thu, 16 Dec 2021 07:33:09 +0000 (07:33 +0000)
commit5fa7f73b14790f4c581fb2bd4d67cd5561e79b6a
tree178e4111eef60ad9d8c6cae5a9c2d2b0e94073fd
parent20c85cc1da8d8c7f1932fbdd92128bb6dafad472
s3: smbd: In setup_close_full_information(), remove unneeded vfs_stat().

After openat_pathref_fsp() is successful we know we have a VALID_STAT().

It either returns NT_STATUS_OK or we look at the stat
struct for S_ISLNK so we know we have VALID_STAT().

If it's not successful we error out, so we don't need
another vfs_stat() here.

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Thu Dec 16 07:33:09 UTC 2021 on sn-devel-184
source3/smbd/smb2_close.c