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
3a682ca7
Commit
3a682ca7
authored
Dec 15, 2006
by
mtaylor@qualinost.(none)
Browse files
Options
Browse Files
Download
Plain Diff
Merge qualinost.(none):/home/mtaylor/src/mysql-5.0-maint
into qualinost.(none):/home/mtaylor/src/mysql-5.1-maint
parents
30deafa9
2a13b547
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
6 deletions
+22
-6
mysys/default.c
mysys/default.c
+6
-4
scripts/mysqlbug.sh
scripts/mysqlbug.sh
+7
-1
scripts/mysqld_multi.sh
scripts/mysqld_multi.sh
+9
-1
No files found.
mysys/default.c
View file @
3a682ca7
...
@@ -987,10 +987,11 @@ static uint my_get_system_windows_directory(char *buffer, uint size)
...
@@ -987,10 +987,11 @@ static uint my_get_system_windows_directory(char *buffer, uint size)
Everywhere else, this is:
Everywhere else, this is:
1. /etc/
1. /etc/
2. getenv(DEFAULT_HOME_ENV)
2. /etc/mysql/
3. ""
3. getenv(DEFAULT_HOME_ENV)
4. "~/"
4. ""
5. --sysconfdir=<path>
5. "~/"
6. --sysconfdir=<path>
*/
*/
...
@@ -1012,6 +1013,7 @@ static void init_default_directories()
...
@@ -1012,6 +1013,7 @@ static void init_default_directories()
*
ptr
++=
"sys:/etc/"
;
*
ptr
++=
"sys:/etc/"
;
#else
#else
*
ptr
++=
"/etc/"
;
*
ptr
++=
"/etc/"
;
*
ptr
++=
"/etc/mysql/"
;
#endif
#endif
if
((
env
=
getenv
(
STRINGIFY_ARG
(
DEFAULT_HOME_ENV
))))
if
((
env
=
getenv
(
STRINGIFY_ARG
(
DEFAULT_HOME_ENV
))))
*
ptr
++=
env
;
*
ptr
++=
env
;
...
...
scripts/mysqlbug.sh
View file @
3a682ca7
...
@@ -132,7 +132,13 @@ if test -z "$VISUAL"
...
@@ -132,7 +132,13 @@ if test -z "$VISUAL"
then
then
if
test
-z
"
$EDITOR
"
if
test
-z
"
$EDITOR
"
then
then
# Honor debian sensible-editor
if
test
-x
"/usr/bin/sensible-editor"
then
EDIT
=
/usr/bin/sensible-editor
else
EDIT
=
emacs
EDIT
=
emacs
fi
else
else
EDIT
=
"
$EDITOR
"
EDIT
=
"
$EDITOR
"
fi
fi
...
...
scripts/mysqld_multi.sh
View file @
3a682ca7
...
@@ -472,6 +472,14 @@ sub find_groups
...
@@ -472,6 +472,14 @@ sub find_groups
{
{
$data[$i] = $line;
$data[$i] = $line;
}
}
if (-f "/etc/mysql/my.cnf" && -r "/etc/mysql/my.cnf")
{
open(MY_CNF, "</etc/mysql/my.cnf") && (@tmp=<MY_CNF>) && close(MY_CNF);
}
for (; ($line = shift @tmp); $i++)
{
$data[$i] = $line;
}
if (defined($ENV{MYSQL_HOME}) && -f "$ENV{MYSQL_HOME}/my.cnf" &&
if (defined($ENV{MYSQL_HOME}) && -f "$ENV{MYSQL_HOME}/my.cnf" &&
-r "$ENV{MYSQL_HOME}/my.cnf")
-r "$ENV{MYSQL_HOME}/my.cnf")
{
{
...
@@ -491,7 +499,7 @@ sub find_groups
...
@@ -491,7 +499,7 @@ sub find_groups
$data[$i] = $line;
$data[$i] = $line;
}
}
}
}
chop @data;
cho
m
p @data;
# Make a list of the wanted group ids
# Make a list of the wanted group ids
if (defined($raw_gids))
if (defined($raw_gids))
{
{
...
...
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