]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
lldpd: don't log error string for missing _lldpd user
authorVincent Bernat <vincent@bernat.im>
Tue, 22 Mar 2016 20:25:10 +0000 (21:25 +0100)
committerVincent Bernat <vincent@bernat.im>
Tue, 22 Mar 2016 20:25:10 +0000 (21:25 +0100)
The additional error message (ENOENT) could just confuse the user.

src/daemon/lldpd.c

index 829520a46374e4dd8c32c0e1ab276412ab0281e4..3a3c72484ae6631eb97505d6df1e92ef0c88b694 100644 (file)
@@ -1630,10 +1630,10 @@ lldpd_main(int argc, char *argv[], char *envp[])
        /* Grab uid and gid to use for priv sep */
 #ifdef ENABLE_PRIVSEP
        if ((user = getpwnam(PRIVSEP_USER)) == NULL)
-               fatal("main", "no " PRIVSEP_USER " user for privilege separation");
+               fatalx("main", "no " PRIVSEP_USER " user for privilege separation");
        uid = user->pw_uid;
        if ((group = getgrnam(PRIVSEP_GROUP)) == NULL)
-               fatal("main", "no " PRIVSEP_GROUP " group for privilege separation");
+               fatalx("main", "no " PRIVSEP_GROUP " group for privilege separation");
        gid = group->gr_gid;
 #endif