From 04964363e035f5ca296da3fe8b06ec2529e737a5 Mon Sep 17 00:00:00 2001 From: mouring Date: Wed, 15 Aug 2001 23:17:22 +0000 Subject: - markus@cvs.openbsd.org 2001/08/08 21:34:19 [uidswap.c] undo last change; does not work for sshd --- uidswap.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'uidswap.c') diff --git a/uidswap.c b/uidswap.c index 32305a7d..cc91fcf2 100644 --- a/uidswap.c +++ b/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" @@ -145,9 +145,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) -- cgit v1.2.1