mirror of
https://github.com/sudo-project/sudo.git
synced 2025-09-01 14:55:12 +00:00
call initprivs() if we have it for getprpwuid later on
This commit is contained in:
6
sudo.c
6
sudo.c
@@ -82,9 +82,6 @@ static char rcsid[] = "$Id$";
|
|||||||
#include <sys/param.h>
|
#include <sys/param.h>
|
||||||
#include <netinet/in.h>
|
#include <netinet/in.h>
|
||||||
#include <netdb.h>
|
#include <netdb.h>
|
||||||
#ifdef HAVE_GETPRPWUID
|
|
||||||
#include <prot.h>
|
|
||||||
#endif /* HAVE_GETPRPWUID */
|
|
||||||
#ifdef HAVE_DCE
|
#ifdef HAVE_DCE
|
||||||
#include <pthread.h>
|
#include <pthread.h>
|
||||||
#endif /* HAVE_DCE */
|
#endif /* HAVE_DCE */
|
||||||
@@ -188,6 +185,9 @@ int main(argc, argv)
|
|||||||
|
|
||||||
#if defined(HAVE_GETPRPWUID) && defined(HAVE_SET_AUTH_PARAMETERS)
|
#if defined(HAVE_GETPRPWUID) && defined(HAVE_SET_AUTH_PARAMETERS)
|
||||||
(void) set_auth_parameters(argc, argv);
|
(void) set_auth_parameters(argc, argv);
|
||||||
|
# ifdef HAVE_INITPRIVS
|
||||||
|
initprivs();
|
||||||
|
# endif
|
||||||
#endif /* HAVE_GETPRPWUID && HAVE_SET_AUTH_PARAMETERS */
|
#endif /* HAVE_GETPRPWUID && HAVE_SET_AUTH_PARAMETERS */
|
||||||
|
|
||||||
Argv = argv;
|
Argv = argv;
|
||||||
|
Reference in New Issue
Block a user