diff options
author | Ben Lindstrom <mouring@eviladmin.org> | 2001-02-09 02:11:24 +0000 |
---|---|---|
committer | Ben Lindstrom <mouring@eviladmin.org> | 2001-02-09 02:11:24 +0000 |
commit | 31ca54aa86a90052f8fe73fda66c7f39fd5079bc (patch) | |
tree | 91bf4097b9145323fd2aee645a2a42348e33b22e /auth-rhosts.c | |
parent | e9cf357a99dcd2db14635974289e04f5f0808123 (diff) |
- itojun@cvs.openbsd.org 2001/02/08 19:30:52
sync with netbsd tree changes.
- more strict prototypes, include necessary headers
- use paths.h/pathnames.h decls
- size_t typecase to int -> u_long
Diffstat (limited to 'auth-rhosts.c')
-rw-r--r-- | auth-rhosts.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/auth-rhosts.c b/auth-rhosts.c index d8d10ffc9..9b018c9d9 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" |
17 | RCSID("$OpenBSD: auth-rhosts.c,v 1.20 2001/02/03 10:08:36 markus Exp $"); | 17 | RCSID("$OpenBSD: auth-rhosts.c,v 1.21 2001/02/08 19:30:51 itojun Exp $"); |
18 | 18 | ||
19 | #include "packet.h" | 19 | #include "packet.h" |
20 | #include "xmalloc.h" | 20 | #include "xmalloc.h" |
@@ -23,6 +23,7 @@ RCSID("$OpenBSD: auth-rhosts.c,v 1.20 2001/02/03 10:08:36 markus Exp $"); | |||
23 | #include "log.h" | 23 | #include "log.h" |
24 | #include "servconf.h" | 24 | #include "servconf.h" |
25 | #include "canohost.h" | 25 | #include "canohost.h" |
26 | #include "auth.h" | ||
26 | 27 | ||
27 | /* | 28 | /* |
28 | * This function processes an rhosts-style file (.rhosts, .shosts, or | 29 | * This function processes an rhosts-style file (.rhosts, .shosts, or |
@@ -188,7 +189,7 @@ auth_rhosts(struct passwd *pw, const char *client_user) | |||
188 | 189 | ||
189 | /* If not logging in as superuser, try /etc/hosts.equiv and shosts.equiv. */ | 190 | /* If not logging in as superuser, try /etc/hosts.equiv and shosts.equiv. */ |
190 | if (pw->pw_uid != 0) { | 191 | if (pw->pw_uid != 0) { |
191 | if (check_rhosts_file("/etc/hosts.equiv", hostname, ipaddr, client_user, | 192 | if (check_rhosts_file(_PATH_RHOSTS_EQUIV, hostname, ipaddr, client_user, |
192 | pw->pw_name)) { | 193 | pw->pw_name)) { |
193 | packet_send_debug("Accepted for %.100s [%.100s] by /etc/hosts.equiv.", | 194 | packet_send_debug("Accepted for %.100s [%.100s] by /etc/hosts.equiv.", |
194 | hostname, ipaddr); | 195 | hostname, ipaddr); |