summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorRalph Boehme <slow@samba.org>2023-03-30 16:01:42 +0200
committerRalph Boehme <slow@samba.org>2023-03-31 05:12:32 +0000
commit0cb37f78c1c7d381c7b271ec2147094182c9aa03 (patch)
treef1288dca915acf18582fd1aeb6d29afa7502a33c /source3
parent00c836436e03e23383b9b48c81f8e8b41283e2a9 (diff)
downloadsamba-0cb37f78c1c7d381c7b271ec2147094182c9aa03.tar.gz
smbd: use smb1_strip_dfs_path() in reply_setatr()
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_reply.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source3/smbd/smb1_reply.c b/source3/smbd/smb1_reply.c
index 3c53d8fe4e4..461910a571c 100644
--- a/source3/smbd/smb1_reply.c
+++ b/source3/smbd/smb1_reply.c
@@ -921,6 +921,11 @@ void reply_setatr(struct smb_request *req)
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,