summaryrefslogtreecommitdiff
path: root/uidswap.c
diff options
context:
space:
mode:
authorBen Lindstrom <mouring@eviladmin.org>2000-11-17 03:47:20 +0000
committerBen Lindstrom <mouring@eviladmin.org>2000-11-17 03:47:20 +0000
commit49a79c09762613f29601ef2470d13952168021be (patch)
tree140539420c10c5b358481cadcec495a5a41103fd /uidswap.c
parentbaaa2c05dd789bdce64fa7eb5697a5f969d68288 (diff)
- (stevek) Reworked progname support.
- (bal) Misplaced #include "includes.h" in bsd-setproctitle.c. Patch by Shinichi Maruyama <marya@st.jip.co.jp> I assume the progname patch was finished. I believe stevek is on vacation, but it passes compiling under Linux and NeXTStep.
Diffstat (limited to 'uidswap.c')
-rw-r--r--uidswap.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/uidswap.c b/uidswap.c
index 48026b9b4..76cbd6c40 100644
--- a/uidswap.c
+++ b/uidswap.c
@@ -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()
91void 88void
92permanently_set_uid(uid_t uid) 89permanently_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}