mirror of
https://github.com/matrix-construct/construct
synced 2024-11-26 08:42:34 +01:00
src/s_conf: Avoid re-inventing the wheel
This commit is contained in:
parent
a576a0fe64
commit
2c0450fb60
1 changed files with 2 additions and 10 deletions
12
src/s_conf.c
12
src/s_conf.c
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue