From 95f5b577d427585c8c74406dcd30eab8fb2f8d3c Mon Sep 17 00:00:00 2001 From: Wouter Wijngaards Date: Thu, 12 Feb 2009 09:02:12 +0000 Subject: [PATCH] and include... git-svn-id: file:///svn/unbound/trunk@1476 be551aaa-1e26-0410-a405-d3ace91eadb9 --- daemon/unbound.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/daemon/unbound.c b/daemon/unbound.c index c526635c2..fcac93555 100644 --- a/daemon/unbound.c +++ b/daemon/unbound.c @@ -63,6 +63,9 @@ #ifdef HAVE_SYS_RESOURCE_H #include #endif +#ifdef HAVE_LOGIN_CAP_H +#include +#endif #ifdef USE_MINI_EVENT # ifdef USE_WINSOCK @@ -465,7 +468,7 @@ perform_setup(struct daemon* daemon, struct config_file* cfg, int debug_mode, * also resource limits from login config, but we * still call setresuid, setresgid to be sure to set all uid*/ if(setusercontext(NULL, pwd, uid, LOGIN_SETALL) != 0) - fatal_exit("could not setusercontext %s: %s", + log_warn("unable to setusercontext %s: %s", cfg->username, strerror(errno)); #else /* !HAVE_SETUSERCONTEXT */ # ifdef HAVE_INITGROUPS