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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
23030772
Commit
23030772
authored
Jul 07, 2006
by
bar@mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge abarkov@bk-internal.mysql.com:/home/bk/mysql-4.1
into mysql.com:/usr/home/bar/mysql-4.1.b17647
parents
0db71aaf
51eec5cf
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
47 additions
and
1 deletion
+47
-1
mysql-test/include/have_case_sensitive_file_system.inc
mysql-test/include/have_case_sensitive_file_system.inc
+4
-0
mysql-test/r/case_sensitive_file_system.require
mysql-test/r/case_sensitive_file_system.require
+2
-0
mysql-test/r/lowercase_fs_off.result
mysql-test/r/lowercase_fs_off.result
+11
-0
mysql-test/t/lowercase_fs_off.test
mysql-test/t/lowercase_fs_off.test
+27
-0
sql/sql_acl.cc
sql/sql_acl.cc
+3
-1
No files found.
mysql-test/include/have_case_sensitive_file_system.inc
0 → 100644
View file @
23030772
--
require
r
/
case_sensitive_file_system
.
require
--
disable_query_log
show
variables
like
"lower_case_file_system"
;
--
enable_query_log
mysql-test/r/case_sensitive_file_system.require
0 → 100644
View file @
23030772
Variable_name Value
lower_case_file_system OFF
mysql-test/r/lowercase_fs_off.result
0 → 100644
View file @
23030772
create database d1;
grant all on d1.* to 'sample'@'localhost' identified by 'password';
flush privileges;
select database();
database()
d1
create database d2;
ERROR 42000: Access denied for user 'sample'@'localhost' to database 'd2'
create database D1;
ERROR 42000: Access denied for user 'sample'@'localhost' to database 'D1'
drop database if exists d1;
mysql-test/t/lowercase_fs_off.test
0 → 100644
View file @
23030772
#
# Specific tests for case sensitive file systems
# i.e. lower_case_filesystem=OFF
#
--
source
include
/
have_case_sensitive_file_system
.
inc
connect
(
master
,
localhost
,
root
,,);
connection
master
;
create
database
d1
;
grant
all
on
d1
.*
to
'sample'
@
'localhost'
identified
by
'password'
;
flush
privileges
;
connect
(
sample
,
localhost
,
sample
,
password
,
d1
);
connection
sample
;
select
database
();
--
error
1044
create
database
d2
;
--
error
1044
create
database
D1
;
disconnect
sample
;
connection
master
;
drop
database
if
exists
d1
;
disconnect
master
;
connection
default
;
# End of 4.1 tests
sql/sql_acl.cc
View file @
23030772
...
...
@@ -146,7 +146,9 @@ my_bool acl_init(bool dont_read_acl_tables)
acl_cache
=
new
hash_filo
(
ACL_CACHE_SIZE
,
0
,
0
,
(
hash_get_key
)
acl_entry_get_key
,
(
hash_free_key
)
free
,
system_charset_info
);
(
hash_free_key
)
free
,
lower_case_file_system
?
system_charset_info
:
&
my_charset_bin
);
if
(
dont_read_acl_tables
)
{
DBUG_RETURN
(
0
);
/* purecov: tested */
...
...
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