summaryrefslogtreecommitdiff
path: root/client/mysql_upgrade.c
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2019-11-19 10:45:28 +0800
committerMarko Mäkelä <marko.makela@mariadb.com>2019-11-19 10:45:28 +0800
commita9846f329935faba560387bab8fd897102e17385 (patch)
tree2734986279de4dbea54be2dda25c994fd99498a8 /client/mysql_upgrade.c
parent6d373e8b817861d3fd3cb181c02d45d2874d5a27 (diff)
parent589a1235b64866c7bbe85da2a6f6bf19ee8282fe (diff)
downloadmariadb-git-a9846f329935faba560387bab8fd897102e17385.tar.gz
Merge 10.4 into 10.5
Diffstat (limited to 'client/mysql_upgrade.c')
-rw-r--r--client/mysql_upgrade.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/client/mysql_upgrade.c b/client/mysql_upgrade.c
index 8fb5ae4a577..73a9791d593 100644
--- a/client/mysql_upgrade.c
+++ b/client/mysql_upgrade.c
@@ -383,7 +383,7 @@ static int run_command(char* cmd,
if (opt_verbose >= 4)
puts(cmd);
- if (!(res_file= popen(cmd, "r")))
+ if (!(res_file= my_popen(cmd, IF_WIN("rt","r"))))
die("popen(\"%s\", \"r\") failed", cmd);
while (fgets(buf, sizeof(buf), res_file))
@@ -401,7 +401,7 @@ static int run_command(char* cmd,
}
}
- error= pclose(res_file);
+ error= my_pclose(res_file);
return WEXITSTATUS(error);
}