#include <pwd.h>
#include <netdb.h>
#include <sys/param.h>
+#ifdef _AIX
+#include <sys/id.h>
+#endif /* _AIX */
#include "sudo.h"
#ifndef STD_HEADERS
extern char *malloc();
* this function sets the effective uid to the value of uid
*/
+#ifdef _AIX
+void be_user()
+{
+ if (setuidx(ID_EFFECTIVE|ID_REAL, uid)) {
+ perror("setuidx(ID_EFFECTIVE|ID_REAL, uid)");
+ exit(1);
+ }
+}
+#else /* _AIX */
void be_user()
{
if (seteuid(uid)) {
exit(1);
}
}
+#endif /* _AIX */