[GRASS-SVN] r55612 - grass/trunk/lib/gis

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Apr 3 09:43:00 PDT 2013


Author: martinl
Date: 2013-04-03 09:43:00 -0700 (Wed, 03 Apr 2013)
New Revision: 55612

Modified:
   grass/trunk/lib/gis/parser.c
Log:
libgis: G_parser(): don't call G_find_file() for element 'mapset'


Modified: grass/trunk/lib/gis/parser.c
===================================================================
--- grass/trunk/lib/gis/parser.c	2013-04-03 16:28:17 UTC (rev 55611)
+++ grass/trunk/lib/gis/parser.c	2013-04-03 16:43:00 UTC (rev 55612)
@@ -1328,8 +1328,11 @@
                         if (access(opt->answers[i], F_OK) == 0)
                             found = TRUE;
 		    }
-                    else if (G_find_file(element, opt->answers[i], G_mapset())) {
-			found = TRUE;
+                    else if (strcmp(element, "mapset") != 0) {
+                        /* TOD0: other elements should be probably skipped */
+                        if (G_find_file(element, opt->answers[i], G_mapset())) {
+                            found = TRUE;
+                        }
 		    }
                     
 		    if (found) {	/* found */



More information about the grass-commit mailing list