diff options
| author | Sven Moritz Hallberg <sm@khjk.org> | 2008-02-14 19:48:34 +0100 | 
|---|---|---|
| committer | Sven Moritz Hallberg <sm@khjk.org> | 2008-02-14 19:48:34 +0100 | 
| commit | ef93a2f828b62e74f62638e7fbbe63e47f92194f (patch) | |
| tree | 5a2e31a65b030d4886184ca0f8dbc3a4e5028775 | |
| parent | a161d33779bb56fabe6466f15a8ae98881f55520 (diff) | |
chmod 0600 otr save files
| -rw-r--r-- | otr.c | 2 | 
1 files changed, 2 insertions, 0 deletions
@@ -249,6 +249,7 @@ void otr_save(irc_t *irc)  	if(e) {  		log_message(LOGLVL_ERROR, "otr save: %s: %s", s, strerror(e));  	} +	chmod(s, 0600);  }  void otr_remove(const char *nick) @@ -1532,6 +1533,7 @@ gpointer otr_keygen_thread_func(gpointer data)  	g_static_rec_mutex_lock(&kg->irc->otr_mutex);  	kg->result = otrl_privkey_generate(kg->irc->otr_us, kg->keyfile, kg->handle,  		kg->protocol); +	chmod(kg->keyfile, 0600);  	g_static_rec_mutex_unlock(&kg->irc->otr_mutex);  	/* OTR enabled again */  | 
