[GRASS-SVN] r61426 - grass/branches/releasebranch_7_0/raster/r.info

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Jul 28 05:25:42 PDT 2014


Author: neteler
Date: 2014-07-28 05:25:42 -0700 (Mon, 28 Jul 2014)
New Revision: 61426

Modified:
   grass/branches/releasebranch_7_0/raster/r.info/main.c
Log:
r.info: fix map name output with -e flag (trunk r61425)

Modified: grass/branches/releasebranch_7_0/raster/r.info/main.c
===================================================================
--- grass/branches/releasebranch_7_0/raster/r.info/main.c	2014-07-28 12:24:33 UTC (rev 61425)
+++ grass/branches/releasebranch_7_0/raster/r.info/main.c	2014-07-28 12:25:42 UTC (rev 61426)
@@ -359,7 +359,10 @@
 	}
 
 	if (eflag->answer) {
-            fprintf(out, "map=%s\n", name);
+            char xname[GNAME_MAX], xmapset[GMAPSET_MAX];
+            G_unqualified_name(name, mapset, xname, xmapset);
+
+            fprintf(out, "map=%s\n", xname);
             fprintf(out, "mapset=%s\n", mapset);
             fprintf(out, "location=%s\n", G_location());
             fprintf(out, "database=%s\n", G_gisdbase());



More information about the grass-commit mailing list