summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorRalph Boehme <slow@samba.org>2023-03-30 16:07:05 +0200
committerRalph Boehme <slow@samba.org>2023-03-31 05:12:32 +0000
commit96765e535d70f683599c57c0334075a70b9200b3 (patch)
treec1a2bbd08f42576bfa5529f0056d80d7f4261665 /source3
parent2c4e4c22eacd89bdd61e4fd3d690769bde044151 (diff)
downloadsamba-96765e535d70f683599c57c0334075a70b9200b3.tar.gz
smbd: use smb1_strip_dfs_path() in call_trans2open()
Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3')
-rw-r--r--source3/smbd/smb1_trans2.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source3/smbd/smb1_trans2.c b/source3/smbd/smb1_trans2.c
index 87c5ec697b5..c46b7a224bf 100644
--- a/source3/smbd/smb1_trans2.c
+++ b/source3/smbd/smb1_trans2.c
@@ -592,6 +592,11 @@ static void call_trans2open(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,