]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
daemon: tell user to create user/group when missing
authorVincent Bernat <vincent@bernat.im>
Mon, 16 May 2016 06:09:05 +0000 (08:09 +0200)
committerVincent Bernat <vincent@bernat.im>
Mon, 16 May 2016 06:09:05 +0000 (08:09 +0200)
src/daemon/lldpd.c

index da2e37a53e845a790fcf142fdf6b12be9a41fd3c..d742b7e19d756a8fef5661827e702b9a358237fa 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)
-               fatalx("main", "no " PRIVSEP_USER " user for privilege separation");
+               fatalx("main", "no " PRIVSEP_USER " user for privilege separation, please create it");
        uid = user->pw_uid;
        if ((group = getgrnam(PRIVSEP_GROUP)) == NULL)
-               fatalx("main", "no " PRIVSEP_GROUP " group for privilege separation");
+               fatalx("main", "no " PRIVSEP_GROUP " group for privilege separation, please create it");
        gid = group->gr_gid;
 #endif