The Samba-Bugzilla – Attachment 11729 Details for
Bug 11645
make "hide dot files" work with "store dos attributes"
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch for 4.3 cherry-picked from master
v43-bug11654.patch (text/plain), 1.50 KB, created by
Ralph Böhme
on 2015-12-16 12:19:19 UTC
(
hide
)
Description:
Patch for 4.3 cherry-picked from master
Filename:
MIME Type:
Creator:
Ralph Böhme
Created:
2015-12-16 12:19:19 UTC
Size:
1.50 KB
patch
obsolete
>From c28eb1264484d597104b53955963841d4472b7bf Mon Sep 17 00:00:00 2001 >From: Ralph Boehme <slow@samba.org> >Date: Tue, 15 Dec 2015 13:13:02 +0100 >Subject: [PATCH] smbd: make "hide dot files" option work with "store dos > attributes = yes" > >When using "store dos attributes = yes", the function that reads the >attributes from the xattr get_ea_dos_attribute() will overwrite the >attribute previously set for "hide dot files". > >According to smb.conf, "store dos attributes = yes" should only >overwrite the "map XXX" options, but not "hide dot files". > >Bug: https://bugzilla.samba.org/show_bug.cgi?id=11645 > >Signed-off-by: Ralph Boehme <slow@samba.org> >Reviewed-by: Jeremy Allison <jra@samba.org> > >Autobuild-User(master): Jeremy Allison <jra@samba.org> >Autobuild-Date(master): Wed Dec 16 07:21:10 CET 2015 on sn-devel-104 > >(cherry picked from commit 2058ce246ea5008202e737f64fbdd9b586b2d7d4) >--- > source3/smbd/dosmode.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/source3/smbd/dosmode.c b/source3/smbd/dosmode.c >index 72acd4e..6265242 100644 >--- a/source3/smbd/dosmode.c >+++ b/source3/smbd/dosmode.c >@@ -365,7 +365,7 @@ static bool get_ea_dos_attribute(connection_struct *conn, > dosattr |= FILE_ATTRIBUTE_DIRECTORY; > } > /* FILE_ATTRIBUTE_SPARSE is valid on get but not on set. */ >- *pattr = (uint32_t)(dosattr & (SAMBA_ATTRIBUTES_MASK|FILE_ATTRIBUTE_SPARSE)); >+ *pattr |= (uint32_t)(dosattr & (SAMBA_ATTRIBUTES_MASK|FILE_ATTRIBUTE_SPARSE)); > > DEBUG(8,("get_ea_dos_attribute returning (0x%x)", dosattr)); > >-- >2.5.0 >
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:
jra
:
review+
Actions:
View
Attachments on
bug 11645
:
11728
| 11729