2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-31 06:15:37 +00:00

call initprivs() if we have it for getprpwuid later on

This commit is contained in:
Todd C. Miller
1998-10-19 18:31:31 +00:00
parent 1895d4388a
commit 156c3b069c

6
sudo.c
View File

@@ -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;