[GRASS-SVN] r69007 - grass/trunk/display/d.mon

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Jul 19 12:01:06 PDT 2016


Author: annakrat
Date: 2016-07-19 12:01:06 -0700 (Tue, 19 Jul 2016)
New Revision: 69007

Modified:
   grass/trunk/display/d.mon/start.c
Log:
d.mon: fix r68983

Modified: grass/trunk/display/d.mon/start.c
===================================================================
--- grass/trunk/display/d.mon/start.c	2016-07-18 15:37:14 UTC (rev 69006)
+++ grass/trunk/display/d.mon/start.c	2016-07-19 19:01:06 UTC (rev 69007)
@@ -63,8 +63,7 @@
         output_name = output;
         /* check write permission */
         dir_name = G_store(output_name);
-        dirname(dir_name);
-        if (access(dir_name, W_OK) != 0)
+        if (access(dirname(dir_name), W_OK) != 0)
             G_fatal_error(_("Unable to start monitor, don't have "
                             "write permission for <%s>"), output_name);
         G_free(dir_name);



More information about the grass-commit mailing list