]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3: smbd: In vfs_stat_smb_basename() use vfs_stat() helper function.
authorJeremy Allison <jra@samba.org>
Mon, 13 Dec 2021 22:02:51 +0000 (14:02 -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 <npower@samba.org>
source3/smbd/vfs.c

index 4091aa304d4968d0bd91090b2cd8e52898537deb..9bc528837d730a4a1dc5aa4f6480a0e0ad43180d 100644 (file)
@@ -1352,12 +1352,7 @@ int vfs_stat_smb_basename(struct connection_struct *conn,
        };
        int ret;
 
-       if (smb_fname.flags & SMB_FILENAME_POSIX_PATH) {
-               ret = SMB_VFS_LSTAT(conn, &smb_fname);
-       } else {
-               ret = SMB_VFS_STAT(conn, &smb_fname);
-       }
-
+       ret = vfs_stat(conn, &smb_fname);
        if (ret != -1) {
                *psbuf = smb_fname.st;
        }