diff options
author | Ben Lindstrom <mouring@eviladmin.org> | 2001-09-12 18:32:20 +0000 |
---|---|---|
committer | Ben Lindstrom <mouring@eviladmin.org> | 2001-09-12 18:32:20 +0000 |
commit | edc0cf26d11d708320ade92e066d4f3e84e20112 (patch) | |
tree | 88abb6fc3997b9b090bebd2e1f04676086e8b24e /ssh.c | |
parent | 7d199962015ad042208beb54cf4a8fb72053f468 (diff) |
- stevesk@cvs.openbsd.org 2001/09/03 20:58:33
[readconf.c readconf.h ssh.c]
fatal() for nonexistent -Fssh_config. ok markus@
Diffstat (limited to 'ssh.c')
-rw-r--r-- | ssh.c | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -39,7 +39,7 @@ | |||
39 | */ | 39 | */ |
40 | 40 | ||
41 | #include "includes.h" | 41 | #include "includes.h" |
42 | RCSID("$OpenBSD: ssh.c,v 1.141 2001/08/29 23:27:23 stevesk Exp $"); | 42 | RCSID("$OpenBSD: ssh.c,v 1.142 2001/09/03 20:58:33 stevesk Exp $"); |
43 | 43 | ||
44 | #include <openssl/evp.h> | 44 | #include <openssl/evp.h> |
45 | #include <openssl/err.h> | 45 | #include <openssl/err.h> |
@@ -622,14 +622,16 @@ again: | |||
622 | * file if the user specifies a config file on the command line. | 622 | * file if the user specifies a config file on the command line. |
623 | */ | 623 | */ |
624 | if (config != NULL) { | 624 | if (config != NULL) { |
625 | read_config_file(config, host, &options); | 625 | if (!read_config_file(config, host, &options)) |
626 | fatal("Can't open user config file %.100s: " | ||
627 | "%.100s", config, strerror(errno)); | ||
626 | } else { | 628 | } else { |
627 | snprintf(buf, sizeof buf, "%.100s/%.100s", pw->pw_dir, | 629 | snprintf(buf, sizeof buf, "%.100s/%.100s", pw->pw_dir, |
628 | _PATH_SSH_USER_CONFFILE); | 630 | _PATH_SSH_USER_CONFFILE); |
629 | 631 | ||
630 | /* Read systemwide configuration file. */ | 632 | /* Read systemwide configuration file. */ |
631 | read_config_file(_PATH_HOST_CONFIG_FILE, host, &options); | 633 | (void)read_config_file(_PATH_HOST_CONFIG_FILE, host, &options); |
632 | read_config_file(buf, host, &options); | 634 | (void)read_config_file(buf, host, &options); |
633 | } | 635 | } |
634 | 636 | ||
635 | /* Fill configuration defaults. */ | 637 | /* Fill configuration defaults. */ |