s3/smbd: call dos_mode_from_name after SMB_VFS_GET_DOS_ATTRIBUTES()
authorRalph Boehme <slow@samba.org>
Thu, 23 Jun 2016 14:40:15 +0000 (16:40 +0200)
committerRalph Boehme <slow@samba.org>
Sat, 25 Jun 2016 16:47:17 +0000 (18:47 +0200)
commit1be877038c53c88802bc19c00a49c1974f17c4eb
tree81882eea8ff24dbf750e2707f2356ee2b87c49bb
parentc8c67c9a2a6347e36f4628e2d0260bd6c58d8c65
s3/smbd: call dos_mode_from_name after SMB_VFS_GET_DOS_ATTRIBUTES()

This doesn't change overall behaviour in any way, it just prepares for
the next step where the IS_HIDDEN_PATH() stuff will be moved to the
function dos_mode_from_name().

It allows an optimisation by not checking "hide to files" patch if
FILE_ATTRIBUTE_HIDDEN was already set in the DOS xattr.

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>
source3/smbd/dosmode.c