summaryrefslogtreecommitdiff
path: root/uidswap.c
diff options
context:
space:
mode:
authorBen Lindstrom <mouring@eviladmin.org>2001-08-15 23:17:22 +0000
committerBen Lindstrom <mouring@eviladmin.org>2001-08-15 23:17:22 +0000
commit049e0dd6cffbf6b5bffe0e2901957e87caccc869 (patch)
tree754d009ff8385cbc4e69febc306f520620712e29 /uidswap.c
parenta66039373b81679d8af3ae6da347b1ebf0aedcc2 (diff)
downloadopenssh-git-049e0dd6cffbf6b5bffe0e2901957e87caccc869.tar.gz
- markus@cvs.openbsd.org 2001/08/08 21:34:19
[uidswap.c] undo last change; does not work for sshd
Diffstat (limited to 'uidswap.c')
-rw-r--r--uidswap.c5
1 files changed, 1 insertions, 4 deletions
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)