diff options
author | Thorsten Lockert <tholo@cvs.openbsd.org> | 1996-12-22 03:26:11 +0000 |
---|---|---|
committer | Thorsten Lockert <tholo@cvs.openbsd.org> | 1996-12-22 03:26:11 +0000 |
commit | b9e51bce4b9f1693731b39bfbb2873af2e60d83c (patch) | |
tree | 9844363957c023a88374765f72c1a49440395ac5 /usr.bin/rlogin | |
parent | a34740287ce7a6f408b47749029e29e62a63724d (diff) |
Deal with _POSIX_SAVED_IDS when relinquishing privileges
Diffstat (limited to 'usr.bin/rlogin')
-rw-r--r-- | usr.bin/rlogin/rlogin.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/rlogin/rlogin.c b/usr.bin/rlogin/rlogin.c index f782110a046..fa9bcac429d 100644 --- a/usr.bin/rlogin/rlogin.c +++ b/usr.bin/rlogin/rlogin.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rlogin.c,v 1.9 1996/11/11 05:59:47 mickey Exp $ */ +/* $OpenBSD: rlogin.c,v 1.10 1996/12/22 03:26:01 tholo Exp $ */ /* $NetBSD: rlogin.c,v 1.8 1995/10/05 09:07:22 mycroft Exp $ */ /* @@ -44,7 +44,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)rlogin.c 8.1 (Berkeley) 6/6/93"; #else -static char rcsid[] = "$OpenBSD: rlogin.c,v 1.9 1996/11/11 05:59:47 mickey Exp $"; +static char rcsid[] = "$OpenBSD: rlogin.c,v 1.10 1996/12/22 03:26:01 tholo Exp $"; #endif #endif /* not lint */ @@ -349,6 +349,7 @@ try_connect: if (setsockopt(rem, IPPROTO_IP, IP_TOS, (char *)&one, sizeof(int)) < 0) perror("rlogin: setsockopt TOS (ignored)"); + (void)seteuid(uid); (void)setuid(uid); doit(omask); /*NOTREACHED*/ |