[PVFS2-CVS] commit by robl in pvfs2-1/src/common/dotconf: dotconf.c

CVS commit program cvs at parl.clemson.edu
Wed Sep 28 19:57:30 EDT 2005


Update of /projects/cvsroot/pvfs2-1/src/common/dotconf
In directory parlweb:/tmp/cvs-serv1295/src/common/dotconf

Modified Files:
	dotconf.c 
Log Message:
[pcarns]: remove overkill call to access... fopen will fail if we don't have
          perms and access() uses real (not effective) uid/gid


Index: dotconf.c
===================================================================
RCS file: /projects/cvsroot/pvfs2-1/src/common/dotconf/dotconf.c,v
diff -u -w -p -u -r1.9 -r1.10
--- dotconf.c	23 Aug 2005 18:44:16 -0000	1.9
+++ dotconf.c	28 Sep 2005 22:57:30 -0000	1.10
@@ -880,12 +880,6 @@ configfile_t *PINT_dotconf_create(
     configfile_t *new = 0;
     char *dc_env;
 
-    if (access(fname, R_OK))
-    {
-	fprintf(stderr, "Error opening configuration file '%s'\n", fname);
-	return NULL;
-    }
-
     new = calloc(1, sizeof(configfile_t));
     if (!(new->stream = fopen(fname, "r")))
     {



More information about the PVFS2-CVS mailing list