diff options
author | okan | 2012-12-17 23:54:57 +0000 |
---|---|---|
committer | okan | 2012-12-17 23:54:57 +0000 |
commit | 3a90166d0b310afb7339b6d1eebd8bb37a80324f (patch) | |
tree | 2dc9b5862d221cb20c9c975e5d4eb0f330f7d1fc /conf.c | |
parent | b5092167190004004d01ad01dd180ded079a0457 (diff) | |
download | cwm-3a90166d0b310afb7339b6d1eebd8bb37a80324f.tar.gz |
put a default known_hosts into conf
Diffstat (limited to '')
-rw-r--r-- | conf.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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 <sys/param.h> @@ -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); } |