aboutsummaryrefslogtreecommitdiffstats
path: root/conf.c
diff options
context:
space:
mode:
authorokan2012-12-17 23:54:57 +0000
committerokan2012-12-17 23:54:57 +0000
commit3a90166d0b310afb7339b6d1eebd8bb37a80324f (patch)
tree2dc9b5862d221cb20c9c975e5d4eb0f330f7d1fc /conf.c
parentb5092167190004004d01ad01dd180ded079a0457 (diff)
downloadcwm-3a90166d0b310afb7339b6d1eebd8bb37a80324f.tar.gz
put a default known_hosts into conf
Diffstat (limited to '')
-rw-r--r--conf.c5
1 files changed, 4 insertions, 1 deletions
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 <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);
}