]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
Fix bug #2421 by Adam about quoting Windows paths in CreateChildProcess()
authorKern Sibbald <kern@sibbald.com>
Tue, 6 Nov 2018 08:56:32 +0000 (09:56 +0100)
committerKern Sibbald <kern@sibbald.com>
Tue, 6 Nov 2018 08:56:32 +0000 (09:56 +0100)
bacula/src/win32/compat/compat.cpp

index bd9a24fa67e09f52292b2052f925fe62f520c5e5..3d33f613fe7ccbae863f1fe7d55f0bae1e5cc3a7 100644 (file)
@@ -2352,7 +2352,7 @@ CreateChildProcess(const char *cmdline, HANDLE in, HANDLE out, HANDLE err)
    }
 
    POOL_MEM cmdLine(PM_FNAME);
-   Mmsg(cmdLine, "%s /c %s%s", comspec, exeFile, argStart);
+   Mmsg(cmdLine, "%s /c \"%s\"%s", comspec, exeFile, argStart);
 
    free(exeFile);