]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
and include...
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Thu, 12 Feb 2009 09:02:12 +0000 (09:02 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Thu, 12 Feb 2009 09:02:12 +0000 (09:02 +0000)
git-svn-id: file:///svn/unbound/trunk@1476 be551aaa-1e26-0410-a405-d3ace91eadb9

daemon/unbound.c

index c526635c298840efe43da32cac737880920767c0..fcac93555cedb5782ccecb24a348974d625cef7d 100644 (file)
@@ -63,6 +63,9 @@
 #ifdef HAVE_SYS_RESOURCE_H
 #include <sys/resource.h>
 #endif
+#ifdef HAVE_LOGIN_CAP_H
+#include <login_cap.h>
+#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