From 3a5566c6c38d8e83b1d691b9e6ffd8b2503b6b35 Mon Sep 17 00:00:00 2001 From: Miroslav Lichvar Date: Wed, 24 May 2017 15:11:33 +0200 Subject: [PATCH] main: use LOG_FATAL to print error when UID is not zero --- main.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/main.c b/main.c index be99f0d..29bc6be 100644 --- a/main.c +++ b/main.c @@ -455,9 +455,7 @@ int main } if (getuid() != 0) { - /* This write to the terminal is OK, it comes before we turn into a daemon */ - fprintf(stderr,"Not superuser\n"); - return 1; + LOG_FATAL("Not superuser"); } /* Turn into a daemon */