- remove duplicate log_open
This commit is contained in:
parent
59dfb51800
commit
8a79888d5e
3
fsipd.c
3
fsipd.c
@ -125,8 +125,7 @@ daemon_start()
|
|||||||
err(EXIT_FAILURE, "Cannot open or create pidfile");
|
err(EXIT_FAILURE, "Cannot open or create pidfile");
|
||||||
}
|
}
|
||||||
/* open a log file in current directory */
|
/* open a log file in current directory */
|
||||||
lfh = log_open(NULL, 0644);
|
if ((lfh = log_open(NULL, 0644)) == NULL) {
|
||||||
if ((lfh = log_open("test.log", 0600)) == NULL) {
|
|
||||||
err(EXIT_FAILURE, "Cannot open log file");
|
err(EXIT_FAILURE, "Cannot open log file");
|
||||||
}
|
}
|
||||||
/* setup socket */
|
/* setup socket */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user