]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3: smbd: In stat_cache_lookup(), use vfs_stat() utility function.
authorJeremy Allison <jra@samba.org>
Mon, 13 Dec 2021 21:44:25 +0000 (13:44 -0800)
committerJeremy Allison <jra@samba.org>
Wed, 15 Dec 2021 18:36:31 +0000 (18:36 +0000)
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Noel Power <noel.power@suse.com>
source3/smbd/statcache.c

index ddbd663ad5ba4a2c3255e95a77544a90b7eb43fa..f5fa07a8436f9f1616bd5798367d92d538da0b95 100644 (file)
@@ -331,12 +331,7 @@ bool stat_cache_lookup(connection_struct *conn,
                .twrp = twrp,
        };
 
-       if (posix_paths) {
-               ret = SMB_VFS_LSTAT(conn, &smb_fname);
-       } else {
-               ret = SMB_VFS_STAT(conn, &smb_fname);
-       }
-
+       ret = vfs_stat(conn, &smb_fname);
        if (ret != 0) {
                /* Discard this entry - it doesn't exist in the filesystem. */
                memcache_delete(smbd_memcache(), STAT_CACHE,