[GRASS-SVN] r58901 - grass/branches/develbranch_6/raster/r.li/r.li.daemon

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Feb 6 08:51:02 PST 2014


Author: neteler
Date: 2014-02-06 08:51:02 -0800 (Thu, 06 Feb 2014)
New Revision: 58901

Modified:
   grass/branches/develbranch_6/raster/r.li/r.li.daemon/worker.c
Log:
r.li.daemon: worker fails when module not run in PERMANENT

Modified: grass/branches/develbranch_6/raster/r.li/r.li.daemon/worker.c
===================================================================
--- grass/branches/develbranch_6/raster/r.li/r.li.daemon/worker.c	2014-02-06 13:57:13 UTC (rev 58900)
+++ grass/branches/develbranch_6/raster/r.li/r.li.daemon/worker.c	2014-02-06 16:51:02 UTC (rev 58901)
@@ -235,6 +235,8 @@
     G_debug(3, "daemon mask preproc: raster=[%s] mask=[%s]  rl=%d cl=%d",
 	    raster, mask, rl, cl);
 
+/* BUG/TODO: mask variable already contains the @mapset, but it after this line switches to @PERMANENT */
+
     /* mapset is used hold the mapset of input raster */
     mapset = G_find_cell(raster, "");
     /* open raster */
@@ -252,6 +254,7 @@
     tmp_file = G_tempfile();
     mask_fd = open(tmp_file, O_RDWR | O_CREAT, 0755);
     old_fd = G_open_cell_old(mask, mapset);
+    G_debug(1,"worker.c: mask <%s@%s>", mask, mapset);
     old = G_allocate_cell_buf();
 
     for (i = 0; i < rl; i++) {



More information about the grass-commit mailing list