summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorKevin Steves <stevesk@cvs.openbsd.org>2002-04-01 21:50:52 +0000
committerKevin Steves <stevesk@cvs.openbsd.org>2002-04-01 21:50:52 +0000
commit830e09ae941858d253bff36a4c8142789626c0ff (patch)
tree078e8f82381800fb65cf69d0ff692be0c0498d90 /usr.bin
parent1374359a1cf4d5a2e671fb982c79e33c25ca8f13 (diff)
typo: assign to self; ok markus@ solar@openwall.com
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/ssh/uidswap.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/usr.bin/ssh/uidswap.c b/usr.bin/ssh/uidswap.c
index e794facd770..88b9749fbb1 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.19 2001/12/19 07:18:56 deraadt Exp $");
+RCSID("$OpenBSD: uidswap.c,v 1.20 2002/04/01 21:50:51 stevesk Exp $");
#include "log.h"
#include "uidswap.h"
@@ -71,7 +71,6 @@ temporarily_use_uid(struct passwd *pw)
/* Set the effective uid to the given (unprivileged) uid. */
if (setgroups(user_groupslen, user_groups) < 0)
fatal("setgroups: %.100s", strerror(errno));
- pw->pw_gid = pw->pw_gid;
if (setegid(pw->pw_gid) < 0)
fatal("setegid %u: %.100s", (u_int) pw->pw_gid,
strerror(errno));