diff options
author | mouring <mouring> | 2001-04-08 18:26:59 +0000 |
---|---|---|
committer | mouring <mouring> | 2001-04-08 18:26:59 +0000 |
commit | 2abe03b075ded20f848b168b19c688ba3bf86606 (patch) | |
tree | 47055bf29273b1c063f1fbd8bf5a3df331993450 /auth-rh-rsa.c | |
parent | ab2a4ba429ca007648f8249277d2d7290411a85e (diff) | |
download | openssh-2abe03b075ded20f848b168b19c688ba3bf86606.tar.gz |
- markus@cvs.openbsd.org 2001/04/06 21:00:17
[auth-rh-rsa.c auth-rhosts.c auth-rsa.c auth2.c channels.c session.c
ssh.c sshconnect.c sshconnect.h uidswap.c uidswap.h]
do gid/groups-swap in addition to uid-swap, should help if /home/group
is chmod 750 + chgrp grp /home/group/, work be deraadt and me, thanks
to olar@openwall.com is comments. we had many requests for this.
Diffstat (limited to 'auth-rh-rsa.c')
-rw-r--r-- | auth-rh-rsa.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/auth-rh-rsa.c b/auth-rh-rsa.c index 0edbdb5f..506a5a23 100644 --- a/auth-rh-rsa.c +++ b/auth-rh-rsa.c @@ -13,7 +13,7 @@ */ #include "includes.h" -RCSID("$OpenBSD: auth-rh-rsa.c,v 1.22 2001/02/03 10:08:36 markus Exp $"); +RCSID("$OpenBSD: auth-rh-rsa.c,v 1.23 2001/04/06 21:00:04 markus Exp $"); #include "packet.h" #include "xmalloc.h" @@ -80,7 +80,7 @@ auth_rhosts_rsa(struct passwd *pw, const char *client_user, RSA *client_host_key pw->pw_name, user_hostfile); } else { /* XXX race between stat and the following open() */ - temporarily_use_uid(pw->pw_uid); + temporarily_use_uid(pw); host_status = check_host_in_hostfile(user_hostfile, canonical_hostname, client_key, found, NULL); restore_uid(); |