moved around the #ifndef _AIX

This commit is contained in:
Todd C. Miller
1993-06-11 22:04:22 +00:00
parent 958ee39a64
commit 3a96124e85

6
sudo.c
View File

@@ -101,14 +101,12 @@ if ( setuid(0) ) {
exit(1);
}
rtn=validate();
#ifdef _AIX
setruid(uid);
#else
if ( setruid(uid) ) {
#ifndef _AIX
perror("setruid(uid)");
exit(1);
}
#endif
}
switch ( rtn ) {