s3/smbd: only use stored dos attributes for open_match_attributes() check
commitefd6eaf2d02da60eb9ca3c9c65b50d8b3e147a41
authorRalph Boehme <slow@samba.org>
Thu, 23 Jun 2016 10:24:33 +0000 (23 12:24 +0200)
committerKarolin Seeger <kseeger@samba.org>
Tue, 28 Jun 2016 11:11:21 +0000 (28 13:11 +0200)
treed1ef31e2e9cb0ebc023ea7b33cb796ce311ea46b
parent7448b50a62e77e40de75ebd8bb65ef02747a6d8e
s3/smbd: only use stored dos attributes for open_match_attributes() check

This changes the way we check for old vs new DOS attributes on open with
overwrite: only check against the DOS attributes actually set by a
client and stored in the DOS attributes xattr.

With this change "hide dot files" and "hide files" continue to work with
"store dos attributes = yes".

Bug: https://bugzilla.samba.org/show_bug.cgi?id=11992

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
(cherry picked from commit 36b7cff3188bbc21048c12ec971d9c2ac3666226)
source3/smbd/open.c