s3: VFS: fruit: In fruit_stat_meta_netatalk(), move the call to fruit_stat_base(...
authorJeremy Allison <jra@samba.org>
Fri, 2 Jul 2021 20:37:56 +0000 (13:37 -0700)
committerJeremy Allison <jra@samba.org>
Sun, 4 Jul 2021 17:15:34 +0000 (17:15 +0000)
commit342086d773cbd85c1683ab9fcb1a9c2b225c890f
tree4df5ca42487009d4a37c2721fa8562b306dee978
parent6eaf027458aea1405331b59b71af51aca59f8cf0
s3: VFS: fruit: In fruit_stat_meta_netatalk(), move the call to fruit_stat_base() before the ad_get() call.

Both must succeed for a valid return, and we're next going
to replace ad_get() with a wrapper that calls openat_pathref_fsp(),
which needs a VALID_STAT().

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/modules/vfs_fruit.c