updates. silc.client.0.7.1
authorPekka Riikonen <priikone@silcnet.org>
Wed, 19 Dec 2001 19:34:12 +0000 (19:34 +0000)
committerPekka Riikonen <priikone@silcnet.org>
Wed, 19 Dec 2001 19:34:12 +0000 (19:34 +0000)
CHANGES
TODO
lib/silcutil/silclog.c

diff --git a/CHANGES b/CHANGES
index d284fe5e55fb7b4bdc1b8131a7bc4b0908d4bd13..2ffe0ed5932010e3eaee40d2c561f0ae6a7884cb 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,3 +1,9 @@
+Wed Dec 19 21:31:25 EET 2001  Pekka Riikonen <priikone@silcnet.org>
+
+       * 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 <priikone@silcnet.org>
 
        * Fixed JOIN command parsing not to crash.  Affected file
diff --git a/TODO b/TODO
index a4d0dbb34ef23e8ad6ebd1909a96d269d51f79ae..d46800c9f0a7e18f73cce7820c7ba16f7f57d632 100644 (file)
--- 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.
index 5e3cee08d1b220c7779c9270290be273f2aecc20..08805a3887c644aa461dff2ca6ac001360b6b6be 100644 (file)
@@ -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;
     }
   }