version 1.52, 2020/04/17 03:30:05 |
version 1.53, 2020/10/18 11:32:01 |
|
|
if (!rhosts_files[rhosts_file_index] && |
if (!rhosts_files[rhosts_file_index] && |
stat(_PATH_RHOSTS_EQUIV, &st) == -1 && |
stat(_PATH_RHOSTS_EQUIV, &st) == -1 && |
stat(_PATH_SSH_HOSTS_EQUIV, &st) == -1) { |
stat(_PATH_SSH_HOSTS_EQUIV, &st) == -1) { |
debug3("%s: no hosts access files exist", __func__); |
debug3_f("no hosts access files exist"); |
return 0; |
return 0; |
} |
} |
|
|
|
|
* shosts.equiv. |
* shosts.equiv. |
*/ |
*/ |
if (pw->pw_uid == 0) |
if (pw->pw_uid == 0) |
debug3("%s: root user, ignoring system hosts files", __func__); |
debug3_f("root user, ignoring system hosts files"); |
else { |
else { |
if (check_rhosts_file(_PATH_RHOSTS_EQUIV, hostname, ipaddr, |
if (check_rhosts_file(_PATH_RHOSTS_EQUIV, hostname, ipaddr, |
client_user, pw->pw_name)) { |
client_user, pw->pw_name)) { |