summaryrefslogtreecommitdiff
path: root/netware
diff options
context:
space:
mode:
authorChad MILLER <chad@mysql.com>2008-08-18 13:33:00 -0400
committerChad MILLER <chad@mysql.com>2008-08-18 13:33:00 -0400
commit59ac54214b8c1dc46e59419de1f337475d231a3d (patch)
treeb8f8217f04850021fd34fdbdc352abbc4aae9ec6 /netware
parent89cbe9156e478e4f1303f981b62da439efa09cf7 (diff)
parent81470ec3e51f8374763aa52d93a1c8fac8339664 (diff)
downloadmariadb-git-59ac54214b8c1dc46e59419de1f337475d231a3d.tar.gz
Merge from 5.0-bugteam local.
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);