mirror of
https://github.com/samba-team/samba.git
synced 2025-02-25 17:57:42 +03:00
mangle_hash2: add missing COM/LPT ports that are also reserved names
see also: https://docs.microsoft.com/en-us/windows/win32/fileio/naming-a-file?redirectedfrom=MSDN BUG: https://bugzilla.samba.org/show_bug.cgi?id=8776 Signed-off-by: Bjoern Jacke <bjacke@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
24c09f913d
commit
c653f8054e
@ -101,8 +101,10 @@ static const char basechars[36] = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ";
|
||||
|
||||
/* the list of reserved dos names - all of these are illegal */
|
||||
static const char * const reserved_names[] =
|
||||
{ "AUX", "LOCK$", "CON", "COM1", "COM2", "COM3", "COM4",
|
||||
"LPT1", "LPT2", "LPT3", "NUL", "PRN", NULL };
|
||||
{ "AUX", "LOCK$", "CON",
|
||||
"COM1", "COM2", "COM3", "COM4", "COM5", "COM6", "COM7", "COM8", "COM9",
|
||||
"LPT1", "LPT2", "LPT3", "LPT4", "LPT5", "LPT6", "LPT7", "LPT8", "LPT9",
|
||||
"NUL", "PRN", NULL };
|
||||
|
||||
#define DYNAMIC_MANGLE_TABLES 0
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user