[GRASS-SVN] r40550 - grass/branches/develbranch_6/lib/gis
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Jan 19 04:46:11 EST 2010
Author: glynn
Date: 2010-01-19 04:46:11 -0500 (Tue, 19 Jan 2010)
New Revision: 40550
Modified:
grass/branches/develbranch_6/lib/gis/spawn.c
Log:
Quote argument to "cmd /c ..." (back-port r40549)
Modified: grass/branches/develbranch_6/lib/gis/spawn.c
===================================================================
--- grass/branches/develbranch_6/lib/gis/spawn.c 2010-01-19 09:45:31 UTC (rev 40549)
+++ grass/branches/develbranch_6/lib/gis/spawn.c 2010-01-19 09:46:11 UTC (rev 40550)
@@ -284,7 +284,7 @@
if (shell) {
const char *comspec = getenv("COMSPEC");
append(&result, comspec ? comspec : "cmd.exe");
- append(&result, " /c ");
+ append(&result, " /c \"");
escape_arg(&result, cmd);
}
@@ -294,6 +294,8 @@
escape_arg(&result, argv[i]);
}
+ append(&result, "\"");
+
return release(&result);
}
More information about the grass-commit
mailing list