[GRASS-SVN] r35283 - grass/branches/develbranch_6/vector/v.surf.rst
svn_grass at osgeo.org
svn_grass at osgeo.org
Thu Jan 8 04:02:13 EST 2009
Author: marisn
Date: 2009-01-08 04:02:13 -0500 (Thu, 08 Jan 2009)
New Revision: 35283
Modified:
grass/branches/develbranch_6/vector/v.surf.rst/main.c
Log:
Chceck vector output file name validity before any processing
Modified: grass/branches/develbranch_6/vector/v.surf.rst/main.c
===================================================================
--- grass/branches/develbranch_6/vector/v.surf.rst/main.c 2009-01-08 02:11:05 UTC (rev 35282)
+++ grass/branches/develbranch_6/vector/v.surf.rst/main.c 2009-01-08 09:02:13 UTC (rev 35283)
@@ -389,6 +389,26 @@
treefile = parm.treefile->answer;
overfile = parm.overfile->answer;
+ if (devi) {
+ if (Vect_legal_filename(devi) == -1)
+ G_fatal_error(_("Output vector map name <%s> is not valid map name"),
+ devi);
+ }
+ if (cvdev) {
+ if (Vect_legal_filename(cvdev) == -1)
+ G_fatal_error(_("Output vector map name <%s> is not valid map name"),
+ cvdev);
+ }
+ if (treefile) {
+ if (Vect_legal_filename(treefile) == -1)
+ G_fatal_error(_("Output vector map name <%s> is not valid map name"),
+ treefile);
+ }
+ if (overfile) {
+ if (Vect_legal_filename(overfile) == -1)
+ G_fatal_error(_("Output vector map name <%s> is not valid map name"),
+ overfile);
+ }
/* if (treefile)
Vect_check_input_output_name(input, treefile, GV_FATAL_EXIT);
More information about the grass-commit
mailing list