version 1.18, 2000/11/12 19:50:37 |
version 1.19, 2000/12/21 15:10:16 |
|
|
|
|
/* Check if we know the host and its host key. */ |
/* Check if we know the host and its host key. */ |
host_status = check_host_in_hostfile(SSH_SYSTEM_HOSTFILE, canonical_hostname, |
host_status = check_host_in_hostfile(SSH_SYSTEM_HOSTFILE, canonical_hostname, |
client_key, found); |
client_key, found, NULL); |
|
|
/* Check user host file unless ignored. */ |
/* Check user host file unless ignored. */ |
if (host_status != HOST_OK && !options.ignore_user_known_hosts) { |
if (host_status != HOST_OK && !options.ignore_user_known_hosts) { |
|
|
/* XXX race between stat and the following open() */ |
/* XXX race between stat and the following open() */ |
temporarily_use_uid(pw->pw_uid); |
temporarily_use_uid(pw->pw_uid); |
host_status = check_host_in_hostfile(user_hostfile, canonical_hostname, |
host_status = check_host_in_hostfile(user_hostfile, canonical_hostname, |
client_key, found); |
client_key, found, NULL); |
restore_uid(); |
restore_uid(); |
} |
} |
xfree(user_hostfile); |
xfree(user_hostfile); |