diff options
author | okan <okan> | 2012-12-17 23:54:57 +0000 |
---|---|---|
committer | okan <okan> | 2012-12-17 23:54:57 +0000 |
commit | 479e9f769c5a822da49ec60cd7ceb533e1739527 (patch) | |
tree | bb0d00aa4d0aa07b65fd68995135d0e803c1b735 /conf.c | |
parent | 75f65f399e2cfc0fd73f6ae9f68e60313cfdd7e5 (diff) | |
download | cwm-479e9f769c5a822da49ec60cd7ceb533e1739527.tar.gz cwm-479e9f769c5a822da49ec60cd7ceb533e1739527.tar.xz cwm-479e9f769c5a822da49ec60cd7ceb533e1739527.zip |
put a default known_hosts into conf
Diffstat (limited to 'conf.c')
-rw-r--r-- | conf.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/conf.c b/conf.c index 9bdea9b..d1cbbf8 100644 --- a/conf.c +++ b/conf.c @@ -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); } |