summaryrefslogtreecommitdiffstats
path: root/source3
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2013-07-09 16:02:50 -0700
committerAndrew Bartlett <abartlet@samba.org>2013-07-19 17:52:38 +1000
commit21c92969b8d0ad7a77028d24c5b3fea63264e473 (patch)
treed04913c37e1510a52550a03d8f06f7374f6e5eac /source3
parent66e7b15982f188e8b1886eaacf850a7c623733d8 (diff)
downloadsamba-21c92969b8d0ad7a77028d24c5b3fea63264e473.tar.gz
samba-21c92969b8d0ad7a77028d24c5b3fea63264e473.tar.xz
samba-21c92969b8d0ad7a77028d24c5b3fea63264e473.zip
Ensure we can't create a file using SMB2_CREATE with an invalid EA list.
Bug 9992 - Windows error 0x800700FE when copying files with xattr names containing ":" Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source3')
-rw-r--r--source3/smbd/smb2_create.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source3/smbd/smb2_create.c b/source3/smbd/smb2_create.c
index ba743e76fa7..4f2edfca2ce 100644
--- a/source3/smbd/smb2_create.c
+++ b/source3/smbd/smb2_create.c
@@ -584,6 +584,11 @@ static struct tevent_req *smbd_smb2_create_send(TALLOC_CTX *mem_ctx,
tevent_req_nterror(req, NT_STATUS_INVALID_PARAMETER);
return tevent_req_post(req, ev);
}
+
+ if (ea_list_has_invalid_name(ea_list)) {
+ tevent_req_nterror(req, STATUS_INVALID_EA_NAME);
+ return tevent_req_post(req, ev);
+ }
}
if (mxac) {