I wonder, can't G_find_vector2 () be called instead of calling G_find_file2 () directly in Vect_open_new ()? Like:
--- grass-trunk/lib/vector/Vlib/open.c~ 2009-03-20 22:59:08.000000000 +0600 +++ grass-trunk/lib/vector/Vlib/open.c 2009-03-21 11:51:33.093697386 +0600 @@ -547,7 +547,7 @@ } /* Check if map already exists */ - if (G_find_file2(GRASS_VECT_DIRECTORY, name, G_mapset()) != NULL) { + if (G_find_vector2 (name, G_mapset()) != NULL) { G_warning(_("Vector map <%s> already exists and will be overwritten"), name); -- FSF associate member #7257 _______________________________________________ grass-dev mailing list grass-dev@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-dev