1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-02 09:47:23 +03:00

Filter the returned DOS attributes by 0xFF for clients

using older protocols (LANMAN2 or below).
Jeremy.
This commit is contained in:
Jeremy Allison 2009-11-04 15:25:15 -08:00
parent cbafe17bb3
commit f44d3754ee

View File

@ -380,6 +380,12 @@ uint32 dos_mode_msdfs(connection_struct *conn,
result |= aHIDDEN;
}
if (get_Protocol() <= PROTOCOL_LANMAN2) {
DEBUG(10,("dos_mode_msdfs : filtering protocol 0x%x to 0xff\n",
(unsigned int)result ));
result &= 0xff;
}
DEBUG(8,("dos_mode_msdfs returning "));
if (result & aHIDDEN) DEBUG(8, ("h"));
@ -560,6 +566,12 @@ uint32 dos_mode(connection_struct *conn, const struct smb_filename *smb_fname)
result |= aHIDDEN;
}
if (get_Protocol() <= PROTOCOL_LANMAN2) {
DEBUG(10,("dos_mode : filtering protocol 0x%x to 0xff\n",
(unsigned int)result ));
result &= 0xff;
}
DEBUG(8,("dos_mode returning "));
if (result & aHIDDEN) DEBUG(8, ("h"));