BOINC GAHP: escape paths for system("mv"), in case these contain blanks

This commit is contained in:
Bernd Machenschalk 2016-07-26 10:05:55 +02:00
parent a60f0bdb49
commit f88c65125b
1 changed files with 1 additions and 1 deletions

View File

@ -534,7 +534,7 @@ void handle_fetch_output(COMMAND& c) {
} else {
sprintf(dst_path, "%s/%s", req.dir, of.dest);
}
sprintf(buf, "mv %s/%s %s", req.dir, of.src, dst_path);
sprintf(buf, "mv '%s/%s' '%s'", req.dir, of.src, dst_path);
retval = system(buf);
if (retval) {
s = string("mv\\ failed");