From 666e42ef5b315c2f84e7b82c77d14e17d2102636 Mon Sep 17 00:00:00 2001 From: Ralph Boehme Date: Thu, 30 Mar 2023 15:42:24 +0200 Subject: [PATCH] smbd: use smb1_strip_dfs_path() in call_nt_transact_create() Signed-off-by: Ralph Boehme Reviewed-by: Jeremy Allison --- source3/smbd/smb1_nttrans.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/source3/smbd/smb1_nttrans.c b/source3/smbd/smb1_nttrans.c index 4c025fe9149..007c53a15f6 100644 --- a/source3/smbd/smb1_nttrans.c +++ b/source3/smbd/smb1_nttrans.c @@ -1089,6 +1089,12 @@ static void call_nt_transact_create(connection_struct *conn, if (ucf_flags & UCF_GMT_PATHNAME) { extract_snapshot_token(fname, &twrp); } + status = smb1_strip_dfs_path(ctx, &ucf_flags, &fname); + if (!NT_STATUS_IS_OK(status)) { + reply_nterror(req, status); + goto out; + } + status = filename_convert_dirfsp(ctx, conn, fname, -- 2.11.4.GIT