diff options
Diffstat (limited to 'uidswap.c')
-rw-r--r-- | uidswap.c | 11 |
1 files changed, 0 insertions, 11 deletions
@@ -16,9 +16,6 @@ RCSID("$OpenBSD: uidswap.c,v 1.9 2000/09/07 20:27:55 deraadt Exp $"); | |||
16 | 16 | ||
17 | #include "ssh.h" | 17 | #include "ssh.h" |
18 | #include "uidswap.h" | 18 | #include "uidswap.h" |
19 | #ifdef WITH_IRIX_AUDIT | ||
20 | #include <sat.h> | ||
21 | #endif /* WITH_IRIX_AUDIT */ | ||
22 | 19 | ||
23 | /* | 20 | /* |
24 | * Note: all these functions must work in all of the following cases: | 21 | * Note: all these functions must work in all of the following cases: |
@@ -91,14 +88,6 @@ restore_uid() | |||
91 | void | 88 | void |
92 | permanently_set_uid(uid_t uid) | 89 | permanently_set_uid(uid_t uid) |
93 | { | 90 | { |
94 | #ifdef WITH_IRIX_AUDIT | ||
95 | if (sysconf(_SC_AUDIT)) { | ||
96 | debug("Setting sat id to %d", (int) uid); | ||
97 | if (satsetid(uid)) | ||
98 | debug("error setting satid: %.100s", strerror(errno)); | ||
99 | } | ||
100 | #endif /* WITH_IRIX_AUDIT */ | ||
101 | |||
102 | if (setuid(uid) < 0) | 91 | if (setuid(uid) < 0) |
103 | debug("setuid %u: %.100s", (u_int) uid, strerror(errno)); | 92 | debug("setuid %u: %.100s", (u_int) uid, strerror(errno)); |
104 | } | 93 | } |