]> jfr.im git - solanum.git/commitdiff
src/s_conf: Avoid re-inventing the wheel
authorQuora Dodrill <redacted>
Wed, 14 Aug 2013 22:45:35 +0000 (15:45 -0700)
committerQuora Dodrill <redacted>
Wed, 14 Aug 2013 22:45:35 +0000 (15:45 -0700)
src/s_conf.c

index d3059e46f7e36e34db06102b0d51b6dd8d32e3ce..ee32711792555d09836c08849c2580d0daf5f2cc 100644 (file)
@@ -1365,16 +1365,8 @@ read_conf_files(int cold)
                        int e;
                        e = errno;
 
-                       if (access(filename, F_OK) == -1) 
-                       {
-                               inotice("FATAL: %s %s", strerror(e), filename);
-                               ilog(L_MAIN, "FATAL: %s %s", strerror(e), filename);
-                       } 
-                       else if (access(filename, R_OK) == -1)
-                       {
-                               inotice("FATAL: %s %s", strerror(e), filename);
-                               ilog(L_MAIN, "FATAL: %s %s", strerror(e), filename);    
-                       }
+                       inotice("FATAL: %s %s", strerror(e), filename);
+                       ilog(L_MAIN, "FATAL: %s %s", strerror(e), filename);
 
                        exit(-1);
                }