summaryrefslogtreecommitdiffstats
path: root/src/ulogd.c
diff options
context:
space:
mode:
authorlaforge <laforge>2005-10-02 17:52:13 +0000
committerlaforge <laforge>2005-10-02 17:52:13 +0000
commit936e615424b0b77c112a1e5c5fab1045f569bbf1 (patch)
tree435f9ac16d3fb45ef8ce401eddcead5d6388451d /src/ulogd.c
parent778a2f3ddcd69804ff5e948b8dd119609356501b (diff)
more work towards automake'ing
Diffstat (limited to 'src/ulogd.c')
-rw-r--r--src/ulogd.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/ulogd.c b/src/ulogd.c
index af6a8f7..a72f3cb 100644
--- a/src/ulogd.c
+++ b/src/ulogd.c
@@ -51,6 +51,7 @@
#include <stdlib.h>
#include <string.h>
#include <stdarg.h>
+#include <errno.h>
#include <time.h>
#include <ctype.h>
#include <signal.h>
@@ -60,7 +61,6 @@
#include <getopt.h>
#include <pwd.h>
#include <grp.h>
-#include <libipulog/libipulog.h>
#include <ulogd/conffile.h>
#include <ulogd/ulogd.h>
#include "select.h"
@@ -949,29 +949,24 @@ int main(int argc, char* argv[])
ulogd_log(ULOGD_NOTICE, "Changing UID / GID\n");
if (setgid(gid)) {
ulogd_log(ULOGD_FATAL, "can't set GID %u\n", gid);
- ipulog_perror(NULL);
exit(1);
}
if (setegid(gid)) {
ulogd_log(ULOGD_FATAL, "can't sett effective GID %u\n",
gid);
- ipulog_perror(NULL);
exit(1);
}
if (initgroups(user, gid)) {
ulogd_log(ULOGD_FATAL, "can't set user secondary GID\n");
- ipulog_perror(NULL);
exit(1);
}
if (setuid(uid)) {
ulogd_log(ULOGD_FATAL, "can't set UID %u\n", uid);
- ipulog_perror(NULL);
exit(1);
}
if (seteuid(uid)) {
ulogd_log(ULOGD_FATAL, "can't set effective UID %u\n",
uid);
- ipulog_perror(NULL);
exit(1);
}
}