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
011d2816
Commit
011d2816
authored
Jul 14, 2010
by
Georgi Kodinov
Browse files
Options
Browse Files
Download
Plain Diff
merge
parents
47a4a881
266ca421
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
6 deletions
+23
-6
client/mysqlshow.c
client/mysqlshow.c
+1
-2
regex/regcomp.c
regex/regcomp.c
+3
-3
scripts/mysql_secure_installation.sh
scripts/mysql_secure_installation.sh
+19
-1
No files found.
client/mysqlshow.c
View file @
011d2816
...
@@ -671,8 +671,7 @@ list_fields(MYSQL *mysql,const char *db,const char *table,
...
@@ -671,8 +671,7 @@ list_fields(MYSQL *mysql,const char *db,const char *table,
char
query
[
1024
],
*
end
;
char
query
[
1024
],
*
end
;
MYSQL_RES
*
result
;
MYSQL_RES
*
result
;
MYSQL_ROW
row
;
MYSQL_ROW
row
;
ulong
rows
;
ulong
UNINIT_VAR
(
rows
);
LINT_INIT
(
rows
);
if
(
mysql_select_db
(
mysql
,
db
))
if
(
mysql_select_db
(
mysql
,
db
))
{
{
...
...
regex/regcomp.c
View file @
011d2816
...
@@ -1563,13 +1563,13 @@ struct parse *p;
...
@@ -1563,13 +1563,13 @@ struct parse *p;
register
struct
re_guts
*
g
;
register
struct
re_guts
*
g
;
{
{
register
sop
*
scan
;
register
sop
*
scan
;
sop
*
start
;
sop
*
UNINIT_VAR
(
start
)
;
register
sop
*
newstart
;
register
sop
*
UNINIT_VAR
(
newstart
)
;
register
sopno
newlen
;
register
sopno
newlen
;
register
sop
s
;
register
sop
s
;
register
char
*
cp
;
register
char
*
cp
;
register
sopno
i
;
register
sopno
i
;
LINT_INIT
(
start
);
LINT_INIT
(
newstart
);
/* avoid making error situations worse */
/* avoid making error situations worse */
if
(
p
->
error
!=
0
)
if
(
p
->
error
!=
0
)
return
;
return
;
...
...
scripts/mysql_secure_installation.sh
View file @
011d2816
...
@@ -17,6 +17,7 @@
...
@@ -17,6 +17,7 @@
config
=
".my.cnf.
$$
"
config
=
".my.cnf.
$$
"
command
=
".mysql.
$$
"
command
=
".mysql.
$$
"
mysql_client
=
""
trap
"interrupt"
2
trap
"interrupt"
2
...
@@ -37,10 +38,26 @@ prepare() {
...
@@ -37,10 +38,26 @@ prepare() {
chmod
600
$config
$command
chmod
600
$config
$command
}
}
find_mysql_client
()
{
for
n
in
./bin/mysql mysql
do
$n
--no-defaults
--help
>
/dev/null 2>&1
status
=
$?
if
test
$status
-eq
0
then
mysql_client
=
$n
return
fi
done
echo
"Can't find a 'mysql' client in PATH or ./bin"
exit
1
}
do_query
()
{
do_query
()
{
echo
"
$1
"
>
$command
echo
"
$1
"
>
$command
#sed 's,^,> ,' < $command # Debugging
#sed 's,^,> ,' < $command # Debugging
mysql
--defaults-file
=
$config
<
$command
$mysql_client
--defaults-file
=
$config
<
$command
return
$?
return
$?
}
}
...
@@ -204,6 +221,7 @@ cleanup() {
...
@@ -204,6 +221,7 @@ cleanup() {
# The actual script starts here
# The actual script starts here
prepare
prepare
find_mysql_client
set_echo_compat
set_echo_compat
echo
echo
...
...
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