main: use LOG_FATAL to print error when UID is not zero
This commit is contained in:
parent
73c548ad01
commit
3a5566c6c3
1 changed files with 1 additions and 3 deletions
4
main.c
4
main.c
|
@ -455,9 +455,7 @@ int main
|
||||||
}
|
}
|
||||||
|
|
||||||
if (getuid() != 0) {
|
if (getuid() != 0) {
|
||||||
/* This write to the terminal is OK, it comes before we turn into a daemon */
|
LOG_FATAL("Not superuser");
|
||||||
fprintf(stderr,"Not superuser\n");
|
|
||||||
return 1;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Turn into a daemon */
|
/* Turn into a daemon */
|
||||||
|
|
Loading…
Reference in a new issue