diff options
author | Jun-ichiro itojun Hagino <itojun@cvs.openbsd.org> | 2001-02-08 19:30:54 +0000 |
---|---|---|
committer | Jun-ichiro itojun Hagino <itojun@cvs.openbsd.org> | 2001-02-08 19:30:54 +0000 |
commit | f2ea9e80ef58d577847e45e4e77a4d1882f2ff45 (patch) | |
tree | 10e7eba9cac215431ac277af39ec8ca62e46e1e4 /usr.bin/ssh/auth-rhosts.c | |
parent | 06da7da4c39450d6cf61f63bce993a0b6fb46e81 (diff) |
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 'usr.bin/ssh/auth-rhosts.c')
-rw-r--r-- | usr.bin/ssh/auth-rhosts.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/ssh/auth-rhosts.c b/usr.bin/ssh/auth-rhosts.c index d8d10ffc9dd..9b018c9d92f 100644 --- a/usr.bin/ssh/auth-rhosts.c +++ b/usr.bin/ssh/auth-rhosts.c @@ -14,7 +14,7 @@ */ #include "includes.h" -RCSID("$OpenBSD: auth-rhosts.c,v 1.20 2001/02/03 10:08:36 markus Exp $"); +RCSID("$OpenBSD: auth-rhosts.c,v 1.21 2001/02/08 19:30:51 itojun Exp $"); #include "packet.h" #include "xmalloc.h" @@ -23,6 +23,7 @@ RCSID("$OpenBSD: auth-rhosts.c,v 1.20 2001/02/03 10:08:36 markus Exp $"); #include "log.h" #include "servconf.h" #include "canohost.h" +#include "auth.h" /* * This function processes an rhosts-style file (.rhosts, .shosts, or @@ -188,7 +189,7 @@ auth_rhosts(struct passwd *pw, const char *client_user) /* If not logging in as superuser, try /etc/hosts.equiv and shosts.equiv. */ if (pw->pw_uid != 0) { - if (check_rhosts_file("/etc/hosts.equiv", hostname, ipaddr, client_user, + if (check_rhosts_file(_PATH_RHOSTS_EQUIV, hostname, ipaddr, client_user, pw->pw_name)) { packet_send_debug("Accepted for %.100s [%.100s] by /etc/hosts.equiv.", hostname, ipaddr); |