From 7f52ae982617026a0d09571baa98fdff7c4d6dda Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Tue, 16 Jul 2013 09:14:12 -0700 Subject: [PATCH] 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 --- source3/smbd/trans2.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/source3/smbd/trans2.c b/source3/smbd/trans2.c index 916686c535f..a216f15cd38 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; } -- 2.11.4.GIT