version 1.544, 2020/12/17 23:26:11 |
version 1.545, 2020/12/20 23:38:00 |
|
|
options.forward_agent_sock_path = cp; |
options.forward_agent_sock_path = cp; |
} |
} |
|
|
|
if (options.num_system_hostfiles > 0 && |
|
strcasecmp(options.system_hostfiles[0], "none") == 0) { |
|
if (options.num_system_hostfiles > 1) |
|
fatal("Invalid GlobalKnownHostsFiles: \"none\" " |
|
"appears with other entries"); |
|
free(options.system_hostfiles[0]); |
|
options.system_hostfiles[0] = NULL; |
|
options.num_system_hostfiles = 0; |
|
} |
|
|
|
if (options.num_user_hostfiles > 0 && |
|
strcasecmp(options.user_hostfiles[0], "none") == 0) { |
|
if (options.num_user_hostfiles > 1) |
|
fatal("Invalid UserKnownHostsFiles: \"none\" " |
|
"appears with other entries"); |
|
free(options.user_hostfiles[0]); |
|
options.user_hostfiles[0] = NULL; |
|
options.num_user_hostfiles = 0; |
|
} |
for (j = 0; j < options.num_user_hostfiles; j++) { |
for (j = 0; j < options.num_user_hostfiles; j++) { |
if (options.user_hostfiles[j] != NULL) { |
if (options.user_hostfiles[j] == NULL) |
cp = tilde_expand_filename(options.user_hostfiles[j], |
continue; |
getuid()); |
cp = tilde_expand_filename(options.user_hostfiles[j], getuid()); |
p = default_client_percent_dollar_expand(cp, cinfo); |
p = default_client_percent_dollar_expand(cp, cinfo); |
if (strcmp(options.user_hostfiles[j], p) != 0) |
if (strcmp(options.user_hostfiles[j], p) != 0) |
debug3("expanded UserKnownHostsFile '%s' -> " |
debug3("expanded UserKnownHostsFile '%s' -> " |
"'%s'", options.user_hostfiles[j], p); |
"'%s'", options.user_hostfiles[j], p); |
free(options.user_hostfiles[j]); |
free(options.user_hostfiles[j]); |
free(cp); |
free(cp); |
options.user_hostfiles[j] = p; |
options.user_hostfiles[j] = p; |
} |
|
} |
} |
|
|
for (i = 0; i < options.num_local_forwards; i++) { |
for (i = 0; i < options.num_local_forwards; i++) { |