* Fixed username handling in command reply. Affected file
silcd/command_reply.c.
+ * Log files are now 0600. Affected file lib/silcutil/silclog.c.
+
Thu Mar 31 22:34:22 CEST 2005 Patrik Weiskircher <pat@icore.at>
* Added new define SILC_MACOSX, if __APPLE__ and __MACH__ is defined.
TODO for SILC Server 1.0
========================
- o The log files should be opened with silc_file* routines to make
- sure they are 0600.
-
o BUG: silc_idlist_del_client had been called but sock->user_data remained
and pointed to invalid pointer. Where it was called is not known.
if (!(log->fp = fopen(log->filename, "w")))
SILC_LOG_WARNING(("Couldn't reopen logfile %s for type \"%s\": %s",
log->filename, log->typename, strerror(errno)));
+#ifdef HAVE_CHMOD
+ chmod(log->filename, 0600);
+#endif /* HAVE_CHMOD */
}
/* Reset a logging channel (close and reopen) */
filename, strerror(errno));
return FALSE;
}
+#ifdef HAVE_CHMOD
+ chmod(filename, 0600);
+#endif /* HAVE_CHMOD */
}
/* clean the logging channel */