From: Ralph Boehme Date: Thu, 30 Mar 2023 14:08:11 +0000 (+0200) Subject: smbd: use smb1_strip_dfs_path() in call_trans2qpathinfo() X-Git-Tag: talloc-2.4.1~1202 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=adb34770fc2185fefcece9e9abba016bd6f34096;p=thirdparty%2Fsamba.git smbd: use smb1_strip_dfs_path() in call_trans2qpathinfo() Signed-off-by: Ralph Boehme Reviewed-by: Jeremy Allison --- diff --git a/source3/smbd/smb1_trans2.c b/source3/smbd/smb1_trans2.c index c46b7a224bf..3d674f68097 100644 --- a/source3/smbd/smb1_trans2.c +++ b/source3/smbd/smb1_trans2.c @@ -2647,6 +2647,11 @@ static void call_trans2qpathinfo( if (ucf_flags & UCF_GMT_PATHNAME) { extract_snapshot_token(fname, &twrp); } + status = smb1_strip_dfs_path(req, &ucf_flags, &fname); + if (!NT_STATUS_IS_OK(status)) { + reply_nterror(req, status); + return; + } status = filename_convert_dirfsp(req, conn, fname,