The Samba-Bugzilla – Attachment 13011 Details for
Bug 12526
vfs_fruit should only veto AppleDouble files if "fruit:resource" is set to "file"
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch for 4.4, 4.5 and 4.6 cherry-picked from master
bug12526-v44,v45,v46.patch (text/plain), 2.67 KB, created by
Ralph Böhme
on 2017-03-03 11:18:13 UTC
(
hide
)
Description:
Patch for 4.4, 4.5 and 4.6 cherry-picked from master
Filename:
MIME Type:
Creator:
Ralph Böhme
Created:
2017-03-03 11:18:13 UTC
Size:
2.67 KB
patch
obsolete
>From 99960a522416d95e0c25cff7ef01c07914e570da Mon Sep 17 00:00:00 2001 >From: Ralph Boehme <slow@samba.org> >Date: Thu, 19 Jan 2017 09:30:45 +0100 >Subject: [PATCH] vfs_fruit: only veto AppleDouble files with > fruit:resource=file > >vfs_fruit only creates AppleDouble files itself when "fruit:resource" is >set to "file" (the default). It is only then the these AppleDouble files >should be treated as an internal representation and should be >inaccessible from clients. > >Bug: https://bugzilla.samba.org/show_bug.cgi?id=12526> > >Signed-off-by: Ralph Boehme <slow@samba.org> >Reviewed-by: Uri Simchoni <uri@samba.org> >(cherry picked from commit 708767da8c366c021d6d15a3ae71d009357c3320) >--- > docs-xml/manpages/vfs_fruit.8.xml | 12 ++++++++---- > source3/modules/vfs_fruit.c | 9 ++++++--- > 2 files changed, 14 insertions(+), 7 deletions(-) > >diff --git a/docs-xml/manpages/vfs_fruit.8.xml b/docs-xml/manpages/vfs_fruit.8.xml >index fe576a5..fa86b6f 100644 >--- a/docs-xml/manpages/vfs_fruit.8.xml >+++ b/docs-xml/manpages/vfs_fruit.8.xml >@@ -224,10 +224,14 @@ > <varlistentry> > <term>fruit:veto_appledouble = yes | no</term> > <listitem> >- <para>Whether ._ AppleDouble files are vetoed which >- prevents the client from seing and accessing internal >- AppleDouble files created by vfs_fruit itself for the >- purpose of storing a Mac resource fork.</para> >+ <para><emphasis>Note:</emphasis> this option only applies when >+ <parameter>fruit:resource</parameter> is set to >+ <parameter>file</parameter> (the default).</para> >+ >+ <para>When <parameter>fruit:resource</parameter> is set to >+ <parameter>file</parameter>, vfs_fruit may create ._ AppleDouble >+ files. This options controls whether these ._ AppleDouble files >+ are vetoed which prevents the client from accessing them.</para> > <para>Vetoing ._ files may break some applications, eg > extracting Mac ZIP archives from Mac clients failes, > because they contain ._ files. Setting this option to >diff --git a/source3/modules/vfs_fruit.c b/source3/modules/vfs_fruit.c >index f1283c8..773d0cb 100644 >--- a/source3/modules/vfs_fruit.c >+++ b/source3/modules/vfs_fruit.c >@@ -1568,9 +1568,12 @@ static int init_fruit_config(vfs_handle_struct *handle) > } > config->encoding = (enum fruit_encoding)enumval; > >- config->veto_appledouble = lp_parm_bool( >- SNUM(handle->conn), FRUIT_PARAM_TYPE_NAME, >- "veto_appledouble", true); >+ if (config->rsrc == FRUIT_RSRC_ADFILE) { >+ config->veto_appledouble = lp_parm_bool(SNUM(handle->conn), >+ FRUIT_PARAM_TYPE_NAME, >+ "veto_appledouble", >+ true); >+ } > > config->use_aapl = lp_parm_bool( > -1, FRUIT_PARAM_TYPE_NAME, "aapl", true); >-- >2.9.3 >
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:
slow
:
review?
(
metze
)
uri
:
review+
Actions:
View
Attachments on
bug 12526
: 13011