[GRASS-SVN] r40549 - grass/trunk/lib/gis
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Jan 19 04:45:33 EST 2010
Author: glynn
Date: 2010-01-19 04:45:31 -0500 (Tue, 19 Jan 2010)
New Revision: 40549
Modified:
grass/trunk/lib/gis/spawn.c
Log:
Quote argument to "cmd /c ..."
Modified: grass/trunk/lib/gis/spawn.c
===================================================================
--- grass/trunk/lib/gis/spawn.c 2010-01-19 09:20:38 UTC (rev 40548)
+++ grass/trunk/lib/gis/spawn.c 2010-01-19 09:45:31 UTC (rev 40549)
@@ -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