summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorMarkus Friedl <markus@cvs.openbsd.org>2001-08-08 21:34:20 +0000
committerMarkus Friedl <markus@cvs.openbsd.org>2001-08-08 21:34:20 +0000
commitf53081f7d3eee4d4bd5677563f155f9864855e13 (patch)
treeea22f7fc2dc74eee7601c87868fcb7bb945b352f /usr.bin
parent0336c434923cd5b3b2acfbfe99c77b27d22856eb (diff)
undo last change; does not work for sshd
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/ssh/uidswap.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/usr.bin/ssh/uidswap.c b/usr.bin/ssh/uidswap.c
index 777d73c4bee..e823d37a8b5 100644
--- a/usr.bin/ssh/uidswap.c
+++ b/usr.bin/ssh/uidswap.c
@@ -12,7 +12,7 @@
*/
#include "includes.h"
-RCSID("$OpenBSD: uidswap.c,v 1.17 2001/08/08 18:20:15 markus Exp $");
+RCSID("$OpenBSD: uidswap.c,v 1.18 2001/08/08 21:34:19 markus Exp $");
#include "log.h"
#include "uidswap.h"
@@ -109,9 +109,6 @@ restore_uid(void)
void
permanently_set_uid(struct passwd *pw)
{
- /* it's a no-op unless privileged */
- if (!privileged)
- return;
if (temporarily_use_uid_effective)
fatal("restore_uid: temporarily_use_uid effective");
if (setgid(pw->pw_gid) < 0)