summaryrefslogtreecommitdiff
path: root/source3/smbd/smb2_create.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2016-03-18 21:55:05 -0700
committerJeremy Allison <jra@samba.org>2016-03-24 22:57:16 +0100
commitbe56fffe4b83ed14a5e84a5023d5c7a826911261 (patch)
tree30245abad7b6731d404f049a2b1c097cab4f24c0 /source3/smbd/smb2_create.c
parent0f245c5ff4f175873f94b108b506527ee06d2a28 (diff)
downloadsamba-be56fffe4b83ed14a5e84a5023d5c7a826911261.tar.gz
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 <jra@samba.org> Reviewed-by: Uri Simchoni <uri@samba.org>
Diffstat (limited to 'source3/smbd/smb2_create.c')
-rw-r--r--source3/smbd/smb2_create.c9
1 files changed, 7 insertions, 2 deletions
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);
}