]> granicus.if.org Git - sudo/commitdiff
call initprivs() if we have it for getprpwuid later on
authorTodd C. Miller <Todd.Miller@courtesan.com>
Mon, 19 Oct 1998 18:31:31 +0000 (18:31 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Mon, 19 Oct 1998 18:31:31 +0000 (18:31 +0000)
sudo.c

diff --git a/sudo.c b/sudo.c
index 6800d69943aeb568ea5ec990c20d11593309a153..78f81f4594fd758079471d40230f7b1099f6bad4 100644 (file)
--- a/sudo.c
+++ b/sudo.c
@@ -82,9 +82,6 @@ static char rcsid[] = "$Id$";
 #include <sys/param.h>
 #include <netinet/in.h>
 #include <netdb.h>
-#ifdef HAVE_GETPRPWUID
-#include <prot.h>
-#endif /* HAVE_GETPRPWUID */
 #ifdef HAVE_DCE
 #include <pthread.h>
 #endif /* HAVE_DCE */
@@ -188,6 +185,9 @@ int main(argc, argv)
 
 #if defined(HAVE_GETPRPWUID) && defined(HAVE_SET_AUTH_PARAMETERS)
     (void) set_auth_parameters(argc, argv);
+#  ifdef HAVE_INITPRIVS
+    initprivs();
+#  endif
 #endif /* HAVE_GETPRPWUID && HAVE_SET_AUTH_PARAMETERS */
 
     Argv = argv;