[GRASS-SVN] r43077 - grass/trunk/lib/db/dbmi_base
svn_grass at osgeo.org
svn_grass at osgeo.org
Thu Aug 12 13:52:44 EDT 2010
Author: mmetz
Date: 2010-08-12 17:52:44 +0000 (Thu, 12 Aug 2010)
New Revision: 43077
Modified:
grass/trunk/lib/db/dbmi_base/login.c
Log:
avoid struct stat
Modified: grass/trunk/lib/db/dbmi_base/login.c
===================================================================
--- grass/trunk/lib/db/dbmi_base/login.c 2010-08-12 17:39:39 UTC (rev 43076)
+++ grass/trunk/lib/db/dbmi_base/login.c 2010-08-12 17:52:44 UTC (rev 43077)
@@ -81,7 +81,6 @@
{
int ret;
const char *file;
- struct stat info;
FILE *fd;
char buf[2001], dr[500], db[500], usr[500], pwd[500];
@@ -90,7 +89,7 @@
G_debug(3, "DB login file = <%s>", file);
- if (stat(file, &info) != 0) {
+ if (access(file, F_OK) != 0) {
G_debug(3, "login file does not exist");
return 0;
}
More information about the grass-commit
mailing list