Second part of fix for 6875 - trans2 FIND_FIRST2 response --> FIND_FIRST2 Data -...
authorJeremy Allison <jra@samba.org>
Wed, 16 Dec 2009 02:38:06 +0000 (18:38 -0800)
committerKarolin Seeger <kseeger@samba.org>
Wed, 13 Jan 2010 13:01:04 +0000 (14:01 +0100)
commit9eabcc653730418c9910635218c93b7fad1ecd3a
treeea4be136339d192f8b7a1fe87694737cd9bc177a
parenta7b85574f8558f8da438afc0a6f6a369deddb97a
Second part of fix for 6875 - trans2 FIND_FIRST2 response --> FIND_FIRST2 Data -> Fille Attributes are returned as 0x220 for LANMAN2.1 dial

Ensure dos_mode can return FILE_ATTRIBUTE_NORMAL, then filter the returned attributes by protocol level.
This makes us consistant in returning DOS attrs across all replies. Tested on OS/2 by Günter Kukkukk.
Jeremy.
(cherry picked from commit b53ee9ffe9d265e254a2c0b11bfcd7e6314ab13f)
source/smbd/dosmode.c
source/smbd/trans2.c