From 3a90166d0b310afb7339b6d1eebd8bb37a80324f Mon Sep 17 00:00:00 2001 From: okan Date: Mon, 17 Dec 2012 23:54:57 +0000 Subject: put a default known_hosts into conf --- conf.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'conf.c') diff --git a/conf.c b/conf.c index b31a32c..a06a3e7 100644 --- a/conf.c +++ b/conf.c @@ -15,7 +15,7 @@ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * - * $OpenBSD: conf.c,v 1.113 2012/12/17 23:03:41 okan Exp $ + * $OpenBSD: conf.c,v 1.114 2012/12/17 23:54:57 okan Exp $ */ #include @@ -193,6 +193,9 @@ conf_init(struct conf *c) (void)strlcpy(c->termpath, "xterm", sizeof(c->termpath)); (void)strlcpy(c->lockpath, "xlock", sizeof(c->lockpath)); + (void)snprintf(c->known_hosts, sizeof(c->known_hosts), "%s/%s", + homedir, ".ssh/known_hosts"); + c->font = xstrdup(CONF_FONT); } -- cgit v1.2.3-2-gb3c3