summaryrefslogtreecommitdiff
path: root/mysys
diff options
context:
space:
mode:
authorjimw@mysql.com <>2005-08-31 18:32:15 -0700
committerjimw@mysql.com <>2005-08-31 18:32:15 -0700
commit00b17c1c171e65df99d793de0653490a37291099 (patch)
treea60bbdc85012c14e9a336099e853fddfb6062bad /mysys
parent16e30aaf68012e4c4b0a7e7beb65dec4cfa60e3b (diff)
downloadmariadb-git-00b17c1c171e65df99d793de0653490a37291099.tar.gz
Fix handling of filenames that start the same as reserved filenames
on Windows. (Bug #12325)
Diffstat (limited to 'mysys')
-rw-r--r--mysys/my_access.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mysys/my_access.c b/mysys/my_access.c
index 8fc83a020cf..237312b5c9b 100644
--- a/mysys/my_access.c
+++ b/mysys/my_access.c
@@ -105,7 +105,7 @@ int check_if_legal_filename(const char *path)
{
if (*reserved != my_toupper(&my_charset_latin1, *name))
break;
- if (++name == end)
+ if (++name == end && !reserved[1])
DBUG_RETURN(1); /* Found wrong path */
} while (*++reserved);
}