summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2013-07-16 09:14:12 -0700
committerAndrew Bartlett <abartlet@samba.org>2013-07-19 17:52:47 +1000
commit5d54ac414f2130fcbd434b7c96e1efe4a22cc1ff (patch)
treee747e1e48e58c12dd10db776201dff28a9803c14 /source3
parentb50b006ace92bb0781173b1244e84ae7bf64732f (diff)
downloadsamba-5d54ac414f2130fcbd434b7c96e1efe4a22cc1ff.tar.gz
samba-5d54ac414f2130fcbd434b7c96e1efe4a22cc1ff.tar.bz2
samba-5d54ac414f2130fcbd434b7c96e1efe4a22cc1ff.zip
Reply with correct trans2 message on a setpathinfo with a bad EA name.
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/trans2.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/source3/smbd/trans2.c b/source3/smbd/trans2.c
index 916686c535..a216f15cd3 100644
--- a/source3/smbd/trans2.c
+++ b/source3/smbd/trans2.c
@@ -8278,7 +8278,16 @@ static void call_trans2setfilepathinfo(connection_struct *conn,
return;
}
- reply_nterror(req, status);
+ /*
+ * Invalid EA name needs to return 2 param bytes,
+ * not a zero-length error packet.
+ */
+ if (NT_STATUS_EQUAL(status, STATUS_INVALID_EA_NAME)) {
+ send_trans2_replies(conn, req, status, params, 2, NULL, 0,
+ max_data_bytes);
+ } else {
+ reply_nterror(req, status);
+ }
return;
}