Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
00b17c1c
Commit
00b17c1c
authored
Aug 31, 2005
by
jimw@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix handling of filenames that start the same as reserved filenames
on Windows. (Bug #12325)
parent
16e30aaf
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
33 additions
and
17 deletions
+33
-17
mysql-test/include/windows.inc
mysql-test/include/windows.inc
+4
-0
mysql-test/r/lowercase_table.result
mysql-test/r/lowercase_table.result
+0
-6
mysql-test/r/windows.result
mysql-test/r/windows.result
+8
-0
mysql-test/t/lowercase_table.test
mysql-test/t/lowercase_table.test
+0
-10
mysql-test/t/windows.test
mysql-test/t/windows.test
+20
-0
mysys/my_access.c
mysys/my_access.c
+1
-1
No files found.
mysql-test/include/windows.inc
0 → 100644
View file @
00b17c1c
--
require
r
/
true
.
require
disable_query_log
;
select
convert
(
@@
version_compile_os
using
latin1
)
IN
(
"Win32"
,
"Win64"
,
"Windows"
)
as
"TRUE"
;
enable_query_log
;
mysql-test/r/lowercase_table.result
View file @
00b17c1c
...
...
@@ -83,9 +83,3 @@ create table t2 like T1;
drop table t1, t2;
show tables;
Tables_in_test
use lpt1;
ERROR 42000: Unknown database 'lpt1'
use com1;
ERROR 42000: Unknown database 'com1'
use prn;
ERROR 42000: Unknown database 'prn'
mysql-test/r/windows.result
0 → 100644
View file @
00b17c1c
use lpt1;
ERROR 42000: Unknown database 'lpt1'
use com1;
ERROR 42000: Unknown database 'com1'
use prn;
ERROR 42000: Unknown database 'prn'
create table nu (a int);
drop table nu;
mysql-test/t/lowercase_table.test
View file @
00b17c1c
...
...
@@ -83,14 +83,4 @@ drop table t1, t2;
show
tables
;
#
#Bug 9148: Denial of service
#
--
error
1049
use
lpt1
;
--
error
1049
use
com1
;
--
error
1049
use
prn
;
# End of 4.1 tests
mysql-test/t/windows.test
0 → 100644
View file @
00b17c1c
# Windows-specific tests
--
source
include
/
windows
.
inc
#
# Bug 9148: Denial of service
#
--
error
1049
use
lpt1
;
--
error
1049
use
com1
;
--
error
1049
use
prn
;
#
# Bug #12325: Can't create table named 'nu'
#
create
table
nu
(
a
int
);
drop
table
nu
;
# End of 4.1 tests
mysys/my_access.c
View file @
00b17c1c
...
...
@@ -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
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment