From: Björn Jacke Date: Mon, 28 Jun 2021 15:00:54 +0000 (+0200) Subject: mangle_hash2: remove LOCK$ from list of reserved names X-Git-Tag: ldb-2.5.0~845 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6248eab51039712b183df915533a76378f48e138;p=thirdparty%2Fsamba.git mangle_hash2: remove LOCK$ from list of 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 Reviewed-by: Jeremy Allison Autobuild-User(master): Jeremy Allison Autobuild-Date(master): Tue Aug 24 19:26:59 UTC 2021 on sn-devel-184 --- diff --git a/source3/smbd/mangle_hash2.c b/source3/smbd/mangle_hash2.c index e7811663250..53e944ef61b 100644 --- a/source3/smbd/mangle_hash2.c +++ b/source3/smbd/mangle_hash2.c @@ -101,7 +101,7 @@ 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", +{ "AUX", "CON", "COM1", "COM2", "COM3", "COM4", "COM5", "COM6", "COM7", "COM8", "COM9", "LPT1", "LPT2", "LPT3", "LPT4", "LPT5", "LPT6", "LPT7", "LPT8", "LPT9", "NUL", "PRN", NULL };