smbd: make "hide dot files" option work with "store dos attributes = yes"
authorRalph Boehme <slow@samba.org>
Tue, 15 Dec 2015 12:13:02 +0000 (13:13 +0100)
committerJeremy Allison <jra@samba.org>
Wed, 16 Dec 2015 06:21:10 +0000 (07:21 +0100)
commit2058ce246ea5008202e737f64fbdd9b586b2d7d4
treec3ffb1991b7d6bf14427310147c74780251e86bd
parent0fd68d0cf5a8e6b968b4b0fad5cff97ebad2c7aa
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
source3/smbd/dosmode.c