From: Jeremy Allison Date: Sat, 19 Mar 2016 04:55:05 +0000 (-0700) Subject: s3: smbd: Remove unneeded lp_posix_pathnames() check in SMB2 create. X-Git-Tag: tdb-1.3.9~125 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=be56fffe4b83ed14a5e84a5023d5c7a826911261;p=thirdparty%2Fsamba.git s3: smbd: Remove unneeded lp_posix_pathnames() check in SMB2 create. Add a comment reminding me to re-add the check when SMB2 unix extensions are re-added. Signed-off-by: Jeremy Allison Reviewed-by: Uri Simchoni --- diff --git a/source3/smbd/smb2_create.c b/source3/smbd/smb2_create.c index ab37be0fb17..4c1b81d9673 100644 --- a/source3/smbd/smb2_create.c +++ b/source3/smbd/smb2_create.c @@ -716,8 +716,13 @@ static struct tevent_req *smbd_smb2_create_send(TALLOC_CTX *mem_ctx, return tevent_req_post(req, ev); } - if (!lp_posix_pathnames() && - ea_list_has_invalid_name(ea_list)) { + /* + * NB. When SMB2+ unix extensions are added, + * we need to relax this check in invalid + * names - we used to not do this if + * lp_posix_pathnames() was false. + */ + if (ea_list_has_invalid_name(ea_list)) { tevent_req_nterror(req, STATUS_INVALID_EA_NAME); return tevent_req_post(req, ev); }