[GRASS-SVN] r52849 - grass/branches/releasebranch_6_4/db/drivers/dbf
svn_grass at osgeo.org
svn_grass at osgeo.org
Thu Aug 23 00:45:51 PDT 2012
Author: neteler
Date: 2012-08-23 00:45:50 -0700 (Thu, 23 Aug 2012)
New Revision: 52849
Modified:
grass/branches/releasebranch_6_4/db/drivers/dbf/db.c
Log:
fix #1690: when dbf/ dir was missing it was making it, but continuing with dir still as (null) (backport from devbr6, r52455)
Modified: grass/branches/releasebranch_6_4/db/drivers/dbf/db.c
===================================================================
--- grass/branches/releasebranch_6_4/db/drivers/dbf/db.c 2012-08-23 07:35:50 UTC (rev 52848)
+++ grass/branches/releasebranch_6_4/db/drivers/dbf/db.c 2012-08-23 07:45:50 UTC (rev 52849)
@@ -93,6 +93,16 @@
report_error();
return DB_FAILED;
}
+ else {
+ /* now that the dbf/ dir is created, try again */
+ dir = opendir(db.name);
+ if (dir == NULL) {
+ append_error("Cannot open dbf database directory: %s\n",
+ name);
+ report_error();
+ return DB_FAILED;
+ }
+ }
}
else { /* some other problem */
append_error("Cannot open dbf database: %s\n", name);
More information about the grass-commit
mailing list