The Samba-Bugzilla – Attachment 11578 Details for
Bug 11589
When Create File request returns NT_STATUS_EAS_NOT_SUPPORTED a zero length file is left behind
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
git-am fix for 4.3.next, 4.2.next.
0001-s3-smbd-If-EA-s-are-turned-off-on-a-share-don-t-allo.patch (text/plain), 1.40 KB, created by
Jeremy Allison
on 2015-11-04 22:08:13 UTC
(
hide
)
Description:
git-am fix for 4.3.next, 4.2.next.
Filename:
MIME Type:
Creator:
Jeremy Allison
Created:
2015-11-04 22:08:13 UTC
Size:
1.40 KB
patch
obsolete
>From 559b0fb1b42382816b67a439edc4303495d8890c Mon Sep 17 00:00:00 2001 >From: Jeremy Allison <jra@samba.org> >Date: Wed, 4 Nov 2015 09:34:57 -0800 >Subject: [PATCH] s3: smbd: If EA's are turned off on a share don't allow an > SMB2 create containing them. > >Otherwise a create that should have failed may succeed. > >Based on an original patch from John Mulligan <phlogistonjohn@asynchrono.us> >and comments from Uri Simchoni <uri@samba.org> > >BUG: https://bugzilla.samba.org/show_bug.cgi?id=11589 > >Signed-off-by: Jeremy Allison <jra@samba.org> >Reviewed-by: Uri Simchoni <uri@samba.org> > >Autobuild-User(master): Uri Simchoni <uri@samba.org> >Autobuild-Date(master): Wed Nov 4 22:14:22 CET 2015 on sn-devel-104 > >(cherry picked from commit aa3cc0b459124c66de0aad8ff41908e1bf261222) >--- > source3/smbd/smb2_create.c | 6 ++++++ > 1 file changed, 6 insertions(+) > >diff --git a/source3/smbd/smb2_create.c b/source3/smbd/smb2_create.c >index 880ceee..ad21533 100644 >--- a/source3/smbd/smb2_create.c >+++ b/source3/smbd/smb2_create.c >@@ -703,6 +703,12 @@ static struct tevent_req *smbd_smb2_create_send(TALLOC_CTX *mem_ctx, > } > > if (exta) { >+ if (!lp_ea_support(SNUM(smb2req->tcon->compat))) { >+ tevent_req_nterror(req, >+ NT_STATUS_EAS_NOT_SUPPORTED); >+ return tevent_req_post(req, ev); >+ } >+ > ea_list = read_nttrans_ea_list(mem_ctx, > (const char *)exta->data.data, exta->data.length); > if (!ea_list) { >-- >2.6.0.rc2.230.g3dd15c0 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Flags:
uri
:
review+
Actions:
View
Attachments on
bug 11589
:
11572
|
11573
| 11578