From: Jeremy Allison Date: Tue, 14 Dec 2021 00:08:14 +0000 (-0800) Subject: s3: smbd: In parent_dirname_compatible_open(), use helper function vfs_stat(). X-Git-Tag: tdb-1.4.6~276 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eb0e68d0e7a22f0cc2a53757d7daf87489406282;p=thirdparty%2Fsamba.git s3: smbd: In parent_dirname_compatible_open(), use helper function vfs_stat(). This is a change in behavior, but the old behavior was incorrect. Signed-off-by: Jeremy Allison Reviewed-by: Noel Power --- diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c index d7c5b962ca7..eeae563766a 100644 --- a/source3/smbd/reply.c +++ b/source3/smbd/reply.c @@ -7072,7 +7072,7 @@ static NTSTATUS parent_dirname_compatible_open(connection_struct *conn, return status; } - ret = SMB_VFS_LSTAT(conn, smb_fname_parent); + ret = vfs_stat(conn, smb_fname_parent); if (ret == -1) { return map_nt_error_from_unix(errno); }