summaryrefslogtreecommitdiff
path: root/readconf.c
diff options
context:
space:
mode:
authormouring <mouring>2001-09-12 18:32:20 +0000
committermouring <mouring>2001-09-12 18:32:20 +0000
commite258692aa648631a3d41e41357a98d0429bc7891 (patch)
tree42419679d717e4e962e95eb18448af473fdbe8d2 /readconf.c
parentfb4b3e3965a433e3ff29e6f8fb6a8f4eedb03222 (diff)
downloadopenssh-e258692aa648631a3d41e41357a98d0429bc7891.tar.gz
- 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 'readconf.c')
-rw-r--r--readconf.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/readconf.c b/readconf.c
index 04895be6..6a426ae0 100644
--- a/readconf.c
+++ b/readconf.c
@@ -12,7 +12,7 @@
*/
#include "includes.h"
-RCSID("$OpenBSD: readconf.c,v 1.88 2001/08/30 16:04:35 stevesk Exp $");
+RCSID("$OpenBSD: readconf.c,v 1.89 2001/09/03 20:58:33 stevesk Exp $");
#include "ssh.h"
#include "xmalloc.h"
@@ -670,10 +670,10 @@ parse_int:
/*
* Reads the config file and modifies the options accordingly. Options
* should already be initialized before this call. This never returns if
- * there is an error. If the file does not exist, this returns immediately.
+ * there is an error. If the file does not exist, this returns 0.
*/
-void
+int
read_config_file(const char *filename, const char *host, Options *options)
{
FILE *f;
@@ -684,7 +684,7 @@ read_config_file(const char *filename, const char *host, Options *options)
/* Open the file. */
f = fopen(filename, "r");
if (!f)
- return;
+ return 0;
debug("Reading configuration data %.200s", filename);
@@ -704,6 +704,7 @@ read_config_file(const char *filename, const char *host, Options *options)
if (bad_options > 0)
fatal("%s: terminating, %d bad configuration options",
filename, bad_options);
+ return 1;
}
/*