[GRASS-SVN] r60263 - grass/branches/develbranch_6/vector/v.kcv

svn_grass at osgeo.org svn_grass at osgeo.org
Fri May 16 07:55:22 PDT 2014


Author: neteler
Date: 2014-05-16 07:55:22 -0700 (Fri, 16 May 2014)
New Revision: 60263

Modified:
   grass/branches/develbranch_6/vector/v.kcv/main.c
Log:
v.kcv: attempt to enforce to accept input only from the current mapset (trac #2035)

Modified: grass/branches/develbranch_6/vector/v.kcv/main.c
===================================================================
--- grass/branches/develbranch_6/vector/v.kcv/main.c	2014-05-16 14:53:01 UTC (rev 60262)
+++ grass/branches/develbranch_6/vector/v.kcv/main.c	2014-05-16 14:55:22 UTC (rev 60263)
@@ -113,6 +113,10 @@
     Cats = Vect_new_cats_struct();
 
     /* open input vector */
+    if (G_find_vector2(map_opt->answer, G_mapset()) == NULL)
+        G_fatal_error(_("Vector map <%s> not found in the current mapset"),
+                         map_opt->answer);
+
     Vect_set_open_level(2);
     if (Vect_open_old(&Map, map_opt->answer, G_mapset()) < 2) {
 	G_fatal_error(_("Unable to open vector map <%s> at topological level %d"),



More information about the grass-commit mailing list