[GRASS-SVN] r63450 - grass/trunk/display/d.mon
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Dec 9 08:27:44 PST 2014
Author: martinl
Date: 2014-12-09 08:27:44 -0800 (Tue, 09 Dec 2014)
New Revision: 63450
Modified:
grass/trunk/display/d.mon/start.c
Log:
d.mon: revert bogus commit r63449
Modified: grass/trunk/display/d.mon/start.c
===================================================================
--- grass/trunk/display/d.mon/start.c 2014-12-09 16:17:36 UTC (rev 63449)
+++ grass/trunk/display/d.mon/start.c 2014-12-09 16:27:44 UTC (rev 63450)
@@ -14,16 +14,13 @@
void start(const char *name, const char *output)
{
char *env_name;
- const char *output_path;
- output_path = realpath(output, NULL);
- if (!output_path) {
- G_debug(1, "Unable to get full path for '%s'", output);
- output_path = output;
- }
+ if (!output)
+ return;
+
env_name = NULL;
G_asprintf(&env_name, "MONITOR_%s_MAPFILE", G_store_upper(name));
- G_setenv(env_name, output_path);
+ G_setenv(env_name, output);
}
/* start wxGUI display monitor */
@@ -76,7 +73,6 @@
G_fatal_error(_("Monitor <%s> already running"), name);
}
- /* write env file */
tempfile = G_tempfile();
u_name = G_store_upper(name);
More information about the grass-commit
mailing list