1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-01 04:58:35 +03:00
Jeremy Allison a0783e8dd9 s3/smbd: fix the last resort check that sets the file type attribute
The rule is, a directory (with any other attributes) should always also
set FILE_ATTRIBUTE_DIRECTORY, a file should only set
FILE_ATTRIBUTE_NORMAL if no other attributes is set.

Iow, if a file contains any existing attributes (e.g. FILE_ATTRIBUTE_HIDDEN),
don't add in the FILE_ATTRIBUTE_NORMAL attribute.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=12436

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>

Autobuild-User(master): Ralph Böhme <slow@samba.org>
Autobuild-Date(master): Sat Nov 19 11:55:35 CET 2016 on sn-devel-144
2016-11-19 11:55:35 +01:00
..
2016-07-20 05:21:06 +02:00
2016-08-24 01:33:49 +02:00
2016-07-20 05:21:07 +02:00
2016-07-20 05:21:07 +02:00
2016-09-15 20:21:41 +02:00
2016-10-14 05:31:07 +02:00
2016-05-04 01:28:22 +02:00
2015-10-13 01:23:07 +02:00
2016-05-04 05:00:36 +02:00
2016-05-04 01:28:22 +02:00
2016-03-09 21:51:52 +01:00