summaryrefslogtreecommitdiff
path: root/sshd.c
diff options
context:
space:
mode:
authordjm@openbsd.org <djm@openbsd.org>2015-04-27 00:21:21 +0000
committerDamien Miller <djm@mindrot.org>2015-04-29 18:15:39 +1000
commitdbcc652f4ca11fe04e5930c7ef18a219318c6cda (patch)
tree0519c314a0e3e7fa6864eb15132e17150949098d /sshd.c
parentb7ca276fca316c952f0b90f5adb1448c8481eedc (diff)
downloadopenssh-git-dbcc652f4ca11fe04e5930c7ef18a219318c6cda.tar.gz
upstream commit
allow "sshd -f none" to skip reading the config file, much like "ssh -F none" does. ok dtucker
Diffstat (limited to 'sshd.c')
-rw-r--r--sshd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sshd.c b/sshd.c
index b33e85c8..78729ddd 100644
--- a/sshd.c
+++ b/sshd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sshd.c,v 1.447 2015/04/15 23:23:25 dtucker Exp $ */
+/* $OpenBSD: sshd.c,v 1.448 2015/04/27 00:21:21 djm Exp $ */
/*
* Author: Tatu Ylonen <ylo@cs.hut.fi>
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -1677,7 +1677,7 @@ main(int ac, char **av)
buffer_init(&cfg);
if (rexeced_flag)
recv_rexec_state(REEXEC_CONFIG_PASS_FD, &cfg);
- else
+ else if (strcasecmp(config_file_name, "none") != 0)
load_server_config(config_file_name, &cfg);
parse_server_config(&options, rexeced_flag ? "rexec" : config_file_name,