diff options
author | Sergei Golubchik <serg@mariadb.org> | 2017-07-07 11:30:03 +0200 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2017-07-07 11:30:03 +0200 |
commit | 9e11e055ce1461caecbb30e8300dfdcd48af22f1 (patch) | |
tree | 48f5dc07a29e44a106c37e7e8e3234c62abbebf6 /client/mysql_upgrade.c | |
parent | 2b5c9bc2c813ea7963959e515da5d60392c35431 (diff) | |
parent | 6b99859fff6b8c0a52ea45965834c9c3fdfc4cb3 (diff) | |
download | mariadb-git-9e11e055ce1461caecbb30e8300dfdcd48af22f1.tar.gz |
Merge branch '10.0' into 10.1
Diffstat (limited to 'client/mysql_upgrade.c')
-rw-r--r-- | client/mysql_upgrade.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/client/mysql_upgrade.c b/client/mysql_upgrade.c index 4e4970bacab..c10dc20e7d7 100644 --- a/client/mysql_upgrade.c +++ b/client/mysql_upgrade.c @@ -1171,6 +1171,8 @@ int main(int argc, char **argv) { int fd= create_temp_file(cnf_file_path, opt_tmpdir[0] ? opt_tmpdir : NULL, "mysql_upgrade-", O_CREAT | O_WRONLY, MYF(MY_FAE)); + if (fd < 0) + die(NULL); my_write(fd, USTRING_WITH_LEN( "[client]\n"), MYF(MY_FAE)); my_write(fd, (uchar*)ds_args.str, ds_args.length, MYF(MY_FAE)); my_close(fd, MYF(0)); |