[GRASS-SVN] r43079 - grass/trunk/lib/vector/Vlib
svn_grass at osgeo.org
svn_grass at osgeo.org
Thu Aug 12 14:04:54 EDT 2010
Author: mmetz
Date: 2010-08-12 18:04:54 +0000 (Thu, 12 Aug 2010)
New Revision: 43079
Modified:
grass/trunk/lib/vector/Vlib/open.c
Log:
avoid struct stat
Modified: grass/trunk/lib/vector/Vlib/open.c
===================================================================
--- grass/trunk/lib/vector/Vlib/open.c 2010-08-12 18:02:57 UTC (rev 43078)
+++ grass/trunk/lib/vector/Vlib/open.c 2010-08-12 18:04:54 UTC (rev 43079)
@@ -959,7 +959,6 @@
int err;
struct Coor_info CInfo;
struct Plus_head *Plus;
- struct stat info;
G_debug(1, "Vect_open_sidx(): name = %s mapset= %s mode = %s", Map->name,
Map->mapset, mode == 0 ? "old" : (mode == 1 ? "update" : "new"));
@@ -977,7 +976,7 @@
sprintf(buf, "%s/%s", GV_DIRECTORY, Map->name);
G__file_name(file_path, buf, GV_SIDX_ELEMENT, Map->mapset);
- if (stat(file_path, &info) != 0) /* does not exist */
+ if (access(file_path, F_OK) != 0) /* does not exist */
return 1;
Map->plus.spidx_fp.file =
More information about the grass-commit
mailing list