diff options
author | Colin Watson <cjwatson@debian.org> | 2020-06-07 10:19:23 +0100 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2020-06-07 10:19:23 +0100 |
commit | 202f5a676221c244cd450086c334c2b59f339e86 (patch) | |
tree | d2f90a3a9ce2b33485c271eab01a48f02ef6fb5a /auth-rhosts.c | |
parent | f0de78bd4f29fa688c5df116f3f9cd43543a76d0 (diff) | |
parent | 9ca7e9c861775dd6c6312bc8aaab687403d24676 (diff) |
Import openssh_8.3p1.orig.tar.gz
Diffstat (limited to 'auth-rhosts.c')
-rw-r--r-- | auth-rhosts.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/auth-rhosts.c b/auth-rhosts.c index 7a10210b6..e81321b49 100644 --- a/auth-rhosts.c +++ b/auth-rhosts.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: auth-rhosts.c,v 1.51 2019/10/02 00:42:30 djm Exp $ */ | 1 | /* $OpenBSD: auth-rhosts.c,v 1.52 2020/04/17 03:30:05 djm Exp $ */ |
2 | /* | 2 | /* |
3 | * Author: Tatu Ylonen <ylo@cs.hut.fi> | 3 | * Author: Tatu Ylonen <ylo@cs.hut.fi> |
4 | * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland | 4 | * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland |
@@ -298,7 +298,9 @@ auth_rhosts2(struct passwd *pw, const char *client_user, const char *hostname, | |||
298 | * Check if we have been configured to ignore .rhosts | 298 | * Check if we have been configured to ignore .rhosts |
299 | * and .shosts files. | 299 | * and .shosts files. |
300 | */ | 300 | */ |
301 | if (options.ignore_rhosts) { | 301 | if (options.ignore_rhosts == IGNORE_RHOSTS_YES || |
302 | (options.ignore_rhosts == IGNORE_RHOSTS_SHOSTS && | ||
303 | strcmp(rhosts_files[rhosts_file_index], ".shosts") != 0)) { | ||
302 | auth_debug_add("Server has been configured to " | 304 | auth_debug_add("Server has been configured to " |
303 | "ignore %.100s.", rhosts_files[rhosts_file_index]); | 305 | "ignore %.100s.", rhosts_files[rhosts_file_index]); |
304 | continue; | 306 | continue; |