summaryrefslogtreecommitdiff
path: root/netware
diff options
context:
space:
mode:
Diffstat (limited to 'netware')
-rw-r--r--netware/mysql_install_db.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/netware/mysql_install_db.c b/netware/mysql_install_db.c
index b6a2c9ec4f6..98852c89825 100644
--- a/netware/mysql_install_db.c
+++ b/netware/mysql_install_db.c
@@ -372,6 +372,15 @@ int mysql_install_db(int argc, char *argv[])
exit(-1);
}
+ if ((err = stat(sql_file, &info)) != 0)
+ {
+ printf("ERROR - %s:\n", strerror(errno));
+ printf("\t%s\n\n", sql_file);
+ // free args
+ free_args(&al);
+ exit(-1);
+ }
+
// spawn mysqld
err = spawn(mysqld, &al, TRUE, sql_file, out_log, err_log);