diff options
author | jani@ua141d10.elisa.omakaista.fi <> | 2006-01-12 20:28:23 +0200 |
---|---|---|
committer | jani@ua141d10.elisa.omakaista.fi <> | 2006-01-12 20:28:23 +0200 |
commit | 617585eb332e59b6a42e6dd840b7745af46a5164 (patch) | |
tree | 986db555a436ebf570733597877d21e2ffa95d36 /netware | |
parent | fac966560af7367ffdea20e02fb91ce2db1f17fb (diff) | |
parent | 8c6a32b9979c632243e87eca3fe24b5649099be1 (diff) | |
download | mariadb-git-617585eb332e59b6a42e6dd840b7745af46a5164.tar.gz |
Merge ua141d10.elisa.omakaista.fi:/home/my/bk/mysql-4.1
into ua141d10.elisa.omakaista.fi:/home/my/bk/mysql-5.0
Diffstat (limited to 'netware')
-rw-r--r-- | netware/mysqld_safe.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/netware/mysqld_safe.c b/netware/mysqld_safe.c index 3a1672fdf61..9db8a441ca3 100644 --- a/netware/mysqld_safe.c +++ b/netware/mysqld_safe.c @@ -258,11 +258,11 @@ void finish_defaults() void read_defaults(arg_list_t *pal) {
arg_list_t al; - char defaults_file[PATH_MAX];
+ char defaults_file[PATH_MAX]; char mydefaults[PATH_MAX];
char line[PATH_MAX];
FILE *fp;
-
+ // defaults output file snprintf(defaults_file, PATH_MAX, "%s/bin/defaults.out", basedir); remove(defaults_file); @@ -270,7 +270,7 @@ void read_defaults(arg_list_t *pal) // mysqladmin file snprintf(mydefaults, PATH_MAX, "%s/bin/my_print_defaults", basedir);
- // args
+ // args init_args(&al); add_arg(&al, mydefaults); if (default_option[0]) @@ -279,11 +279,11 @@ void read_defaults(arg_list_t *pal) add_arg(&al, "server"); add_arg(&al, "mysqld_safe"); add_arg(&al, "safe_mysqld"); -
+ spawn(mydefaults, &al, TRUE, NULL, defaults_file, NULL); -
+ free_args(&al); -
+ // gather defaults if ((fp= fopen(defaults_file, "r")) != NULL) { |