summaryrefslogtreecommitdiff
path: root/auth-rhosts.c
diff options
context:
space:
mode:
authorBen Lindstrom <mouring@eviladmin.org>2001-04-08 18:26:59 +0000
committerBen Lindstrom <mouring@eviladmin.org>2001-04-08 18:26:59 +0000
commit3fcf1a22b52ed8e66d2cf548d5d4528f67377af9 (patch)
treeb635cae14328f373bb682395ab066ee819dd77c4 /auth-rhosts.c
parentd344763643339b5ddc075cf7b8c8fb4404dc0aa0 (diff)
- 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-rhosts.c')
-rw-r--r--auth-rhosts.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/auth-rhosts.c b/auth-rhosts.c
index 9b018c9d9..c71e9b55d 100644
--- a/auth-rhosts.c
+++ b/auth-rhosts.c
@@ -14,7 +14,7 @@
14 */ 14 */
15 15
16#include "includes.h" 16#include "includes.h"
17RCSID("$OpenBSD: auth-rhosts.c,v 1.21 2001/02/08 19:30:51 itojun Exp $"); 17RCSID("$OpenBSD: auth-rhosts.c,v 1.22 2001/04/06 21:00:06 markus Exp $");
18 18
19#include "packet.h" 19#include "packet.h"
20#include "xmalloc.h" 20#include "xmalloc.h"
@@ -161,7 +161,7 @@ auth_rhosts(struct passwd *pw, const char *client_user)
161 if (pw == NULL) 161 if (pw == NULL)
162 return 0; 162 return 0;
163 /* Switch to the user's uid. */ 163 /* Switch to the user's uid. */
164 temporarily_use_uid(pw->pw_uid); 164 temporarily_use_uid(pw);
165 /* 165 /*
166 * Quick check: if the user has no .shosts or .rhosts files, return 166 * Quick check: if the user has no .shosts or .rhosts files, return
167 * failure immediately without doing costly lookups from name 167 * failure immediately without doing costly lookups from name
@@ -223,7 +223,7 @@ auth_rhosts(struct passwd *pw, const char *client_user)
223 return 0; 223 return 0;
224 } 224 }
225 /* Temporarily use the user's uid. */ 225 /* Temporarily use the user's uid. */
226 temporarily_use_uid(pw->pw_uid); 226 temporarily_use_uid(pw);
227 227
228 /* Check all .rhosts files (currently .shosts and .rhosts). */ 228 /* Check all .rhosts files (currently .shosts and .rhosts). */
229 for (rhosts_file_index = 0; rhosts_files[rhosts_file_index]; 229 for (rhosts_file_index = 0; rhosts_files[rhosts_file_index];