[GRASS-SVN] r43075 - grass/trunk/general/g.mkfontcap
svn_grass at osgeo.org
svn_grass at osgeo.org
Thu Aug 12 13:33:19 EDT 2010
Author: mmetz
Date: 2010-08-12 17:33:18 +0000 (Thu, 12 Aug 2010)
New Revision: 43075
Modified:
grass/trunk/general/g.mkfontcap/main.c
Log:
avoid struct stat
Modified: grass/trunk/general/g.mkfontcap/main.c
===================================================================
--- grass/trunk/general/g.mkfontcap/main.c 2010-08-12 17:23:46 UTC (rev 43074)
+++ grass/trunk/general/g.mkfontcap/main.c 2010-08-12 17:33:18 UTC (rev 43075)
@@ -60,7 +60,6 @@
FILE *outstream;
char *fontcapfile;
- struct stat status;
int i;
G_set_program_name(argv[0]);
@@ -104,7 +103,7 @@
else
G_asprintf(&fontcapfile, "%s/etc/fontcap", gisbase);
- if (!stat(fontcapfile, &status)) { /* File exists? */
+ if (!access(fontcapfile, F_OK)) { /* File exists? */
if (!overwrite->answer)
G_fatal_error(_("Fontcap file %s already exists; use -%c flag if you "
"wish to overwrite it"),
More information about the grass-commit
mailing list