diff options
author | Darren Tucker <dtucker@zip.com.au> | 2003-11-22 14:25:15 +1100 |
---|---|---|
committer | Darren Tucker <dtucker@zip.com.au> | 2003-11-22 14:25:15 +1100 |
commit | 4e06a1d75d0f692c84f21347d4e1c4242dc1a96e (patch) | |
tree | 7ebbb2d480891d9bf751fa1f5f6fb03e8aad365f /auth-sia.c | |
parent | d76341616dfebd4addc9c9594767ab1832ccb100 (diff) |
- (dtucker) [auth-sia.c configure.ac] Tru64 update from cmadams at hiwaay.net.
Use permanently_set_uid for SIA, only define DISABLE_FD_PASSING when SIA
is enabled, rely on SIA to check for locked accounts if enabled. ok djm@
Diffstat (limited to 'auth-sia.c')
-rw-r--r-- | auth-sia.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/auth-sia.c b/auth-sia.c index cdd39d670..cd2dcb840 100644 --- a/auth-sia.c +++ b/auth-sia.c | |||
@@ -31,6 +31,7 @@ | |||
31 | #include "log.h" | 31 | #include "log.h" |
32 | #include "servconf.h" | 32 | #include "servconf.h" |
33 | #include "canohost.h" | 33 | #include "canohost.h" |
34 | #include "uidswap.h" | ||
34 | 35 | ||
35 | #include <sia.h> | 36 | #include <sia.h> |
36 | #include <siad.h> | 37 | #include <siad.h> |
@@ -103,8 +104,8 @@ session_setup_sia(struct passwd *pw, char *tty) | |||
103 | 104 | ||
104 | sia_ses_release(&ent); | 105 | sia_ses_release(&ent); |
105 | 106 | ||
106 | if (setreuid(geteuid(), geteuid()) < 0) | 107 | setuid(0); |
107 | fatal("setreuid: %s", strerror(errno)); | 108 | permanently_set_uid(pw); |
108 | } | 109 | } |
109 | 110 | ||
110 | #endif /* HAVE_OSF_SIA */ | 111 | #endif /* HAVE_OSF_SIA */ |