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
commitc6bbad9e507061eeecf775a68d68c1437b6aeb68 (patch)
treeb8f8217f04850021fd34fdbdc352abbc4aae9ec6 /netware
parent10ae3ae1c8f7fe3a91caf4e1eeeefe34a9343b54 (diff)
parentd4e3b42345468903ac3ac7c0a79f583781767db9 (diff)
downloadmariadb-git-c6bbad9e507061eeecf775a68d68c1437b6aeb68.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);