0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-29 18:22:50 +01:00

src/s_conf: Avoid re-inventing the wheel

This commit is contained in:
Quora Dodrill 2013-08-14 15:45:35 -07:00
parent a576a0fe64
commit 2c0450fb60

View 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);
}