From: Jeremy Allison Date: Mon, 13 Dec 2021 21:42:35 +0000 (-0800) Subject: s3: smbd: In check_parent_exists() use utility function vfs_stat(). X-Git-Tag: tdb-1.4.6~283 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8767f60a0a2db0bd9c0de2a36b9cef64efef6ada;p=thirdparty%2Fsamba.git s3: smbd: In check_parent_exists() use utility function vfs_stat(). Signed-off-by: Jeremy Allison Reviewed-by: Noel Power --- diff --git a/source3/smbd/filename.c b/source3/smbd/filename.c index 19eea2d6a77..2faa23c8b4a 100644 --- a/source3/smbd/filename.c +++ b/source3/smbd/filename.c @@ -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. */