[GRASS-SVN] r30695 - grass/trunk/vector/v.edit
svn_grass at osgeo.org
svn_grass at osgeo.org
Sat Mar 22 15:46:32 EDT 2008
Author: martinl
Date: 2008-03-22 15:46:32 -0400 (Sat, 22 Mar 2008)
New Revision: 30695
Modified:
grass/trunk/vector/v.edit/main.c
Log:
v.edit: check for illegal map name (tool=create)
Modified: grass/trunk/vector/v.edit/main.c
===================================================================
--- grass/trunk/vector/v.edit/main.c 2008-03-22 19:18:26 UTC (rev 30694)
+++ grass/trunk/vector/v.edit/main.c 2008-03-22 19:46:32 UTC (rev 30695)
@@ -90,6 +90,11 @@
params.map -> answer);
}
+ if (G_legal_filename(params.map -> answer) == -1) {
+ G_fatal_error(_("<%s> is an illegal file name"),
+ params.map -> answer);
+ }
+
/* 3D vector maps? */
ret = Vect_open_new (&Map, params.map -> answer, WITHOUT_Z);
if (ret == -1) {
More information about the grass-commit
mailing list