mirror of https://github.com/BOINC/boinc.git
BOINC GAHP: escape paths for system("mv"), in case these contain blanks
This commit is contained in:
parent
a60f0bdb49
commit
f88c65125b
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue