]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
ntvfs: add missing COM/LPT ports that are also reserved names
authorBjörn Jacke <bj@sernet.de>
Mon, 28 Jun 2021 14:55:04 +0000 (16:55 +0200)
committerJeremy Allison <jra@samba.org>
Tue, 24 Aug 2021 18:33:32 +0000 (18:33 +0000)
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>
source4/ntvfs/posix/pvfs_shortname.c

index 46a235429aa0a673a47059a6e5195833d0d6ced3..902ff23d88f34ebd1ae695ca2f034fc8389472c4 100644 (file)
 #define FLAG_CHECK(c, flag) (ctx->char_flags[(uint8_t)(c)] & (flag))
 
 static const char *reserved_names[] = 
-{ "AUX", "CON", "COM1", "COM2", "COM3", "COM4",
-  "LPT1", "LPT2", "LPT3", "NUL", "PRN", NULL };
+{ "AUX", "CON",
+  "COM1", "COM2", "COM3", "COM4", "COM5", "COM6", "COM7", "COM8", "COM9"
+  "LPT1", "LPT2", "LPT3", "LPT4", "LPT5", "LPT6", "LPT7", "LPT8", "LPT9",
+  "NUL", "PRN", NULL };
 
 
 struct pvfs_mangle_context {