From: Pekka Riikonen Date: Wed, 19 Dec 2001 19:34:12 +0000 (+0000) Subject: updates. X-Git-Tag: silc.client.0.7.1 X-Git-Url: http://git.silcnet.org/gitweb/?p=silc.git;a=commitdiff_plain;h=ac2d43c1b8f0a2d67cf227257631cbab9e6876e7;hp=e8c2b7b9cabcf221862e7d91a1a7a1e0d6f02dd8 updates. --- diff --git a/CHANGES b/CHANGES index d284fe5e..2ffe0ed5 100644 --- a/CHANGES +++ b/CHANGES @@ -1,3 +1,9 @@ +Wed Dec 19 21:31:25 EET 2001 Pekka Riikonen + + * Make sure the warning about error opening a log file is + printed only once and not everytime it fails (produces + too much useless log). Affected file lib/silcutil/silclog.c. + Mon Dec 17 18:24:27 EET 2001 Pekka Riikonen * Fixed JOIN command parsing not to crash. Affected file diff --git a/TODO b/TODO index a4d0dbb3..d46800c9 100644 --- a/TODO +++ b/TODO @@ -52,6 +52,9 @@ TODO/bugs In SILC Client Library TODO/bugs In SILC Server ======================== + o LIST command reply sending is broken. It is possible it does not + end the list with LIST_END, but sends LIST_ENTRY as last entry. + o Backup router related issues o Channel user mode changes are notified unnecessarely when @@ -87,6 +90,9 @@ TODO/bugs In SILC Server TODO/bugs In SILC Libraries =========================== + o make install copies the symblic links from lib/silcsim/ and not + modules. + o WIN32 silc_net_create_connection_async does not work the same way than on Unix. Do it with threads on WIN32. The function works but is not actually async currently. diff --git a/lib/silcutil/silclog.c b/lib/silcutil/silclog.c index 5e3cee08..08805a38 100644 --- a/lib/silcutil/silclog.c +++ b/lib/silcutil/silclog.c @@ -25,6 +25,7 @@ bool silc_debug = FALSE; bool silc_debug_hexdump = FALSE; char *silc_debug_string = NULL; +bool log_file_open_error = FALSE; /* SILC Log name strings. These strings are printed to the log file. */ const SilcLogTypeName silc_log_types[] = @@ -119,10 +120,13 @@ void silc_log_output(const char *filename, uint32 maxsize, /* Open the log file */ if ((fp = fopen(filename, "a+")) == NULL) { - fprintf(stderr, "warning: could not open log file " - "%s: %s\n", filename, strerror(errno)); - fprintf(stderr, "warning: log messages will be displayed on " - "the screen\n"); + if (!log_file_open_error) { + fprintf(stderr, "warning: could not open log file " + "%s: %s\n", filename, strerror(errno)); + fprintf(stderr, "warning: log messages will be displayed on " + "the screen\n"); + } + log_file_open_error = TRUE; fp = stderr; } }