mangle_hash2: remove LOCK$ from list of reserved names
authorBjörn Jacke <bj@sernet.de>
Mon, 28 Jun 2021 15:00:54 +0000 (17:00 +0200)
committerJeremy Allison <jra@samba.org>
Tue, 24 Aug 2021 19:26:59 +0000 (19:26 +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>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Tue Aug 24 19:26:59 UTC 2021 on sn-devel-184

source3/smbd/mangle_hash2.c

index e7811663250bea03c784159462d2a3b1928825ad..53e944ef61b4d2f9bdd50ccf44393f13ebea5f75 100644 (file)
@@ -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 };