From f88c65125b2286931ffcc161a9c9bb769fada06b Mon Sep 17 00:00:00 2001 From: Bernd Machenschalk Date: Tue, 26 Jul 2016 10:05:55 +0200 Subject: [PATCH] BOINC GAHP: escape paths for system("mv"), in case these contain blanks --- samples/condor/boinc_gahp.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/condor/boinc_gahp.cpp b/samples/condor/boinc_gahp.cpp index eec33bdf3d..d499944d21 100644 --- a/samples/condor/boinc_gahp.cpp +++ b/samples/condor/boinc_gahp.cpp @@ -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");