[GRASS-SVN] r38736 - grass/branches/develbranch_6/display/d.mon/cmd

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Aug 15 02:44:58 EDT 2009


Author: hamish
Date: 2009-08-15 02:44:57 -0400 (Sat, 15 Aug 2009)
New Revision: 38736

Modified:
   grass/branches/develbranch_6/display/d.mon/cmd/main.c
Log:
unlock= opt adds a flag so only quote GISBASE

Modified: grass/branches/develbranch_6/display/d.mon/cmd/main.c
===================================================================
--- grass/branches/develbranch_6/display/d.mon/cmd/main.c	2009-08-15 06:39:08 UTC (rev 38735)
+++ grass/branches/develbranch_6/display/d.mon/cmd/main.c	2009-08-15 06:44:57 UTC (rev 38736)
@@ -97,6 +97,7 @@
     if (G_parser(argc, argv))
 	exit(EXIT_FAILURE);
 
+
     if (unlock->answer)
 	run("release -f", unlock->answer);
 
@@ -152,6 +153,9 @@
 {
     char command[1024];
 
-    sprintf(command, "\"%s/etc/mon.%s\" %s", G_gisbase(), pgm, name);
+    sprintf(command, "\"%s\"/etc/mon.%s %s", G_gisbase(), pgm, name);
+
+    G_debug(1, "run: %s", command);
+
     return system(command);
 }



More information about the grass-commit mailing list