]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3: smbd: In check_parent_exists() use utility function vfs_stat().
authorJeremy Allison <jra@samba.org>
Mon, 13 Dec 2021 21:42:35 +0000 (13:42 -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/filename.c

index 19eea2d6a77a02f13494450b87ec53b11a1ead61..2faa23c8b4a4efada4e779cf6b1605cb62d4a4ea 100644 (file)
@@ -169,11 +169,7 @@ static NTSTATUS check_parent_exists(TALLOC_CTX *ctx,
                return NT_STATUS_NO_MEMORY;
        }
 
-       if (posix_pathnames) {
-               ret = SMB_VFS_LSTAT(conn, parent_fname);
-       } else {
-               ret = SMB_VFS_STAT(conn, parent_fname);
-       }
+       ret = vfs_stat(conn, parent_fname);
 
        /* If the parent stat failed, just continue
           with the normal tree walk. */