1. 31 Mar, 2008 1 commit
    • Per Cederqvist's avatar
      Turn off the garb by default, due to popular request. · 12a5f63e
      Per Cederqvist authored
      * doc/lyskomd.texi (Parameters): Changed "Garb" from "on" to
      (Administration): Suggest that the administrator may want to turn
      on the garb.
      * src/server/server-config.c (parameters): Changed "Garb" from
      "on" to "off".
  2. 24 Apr, 2006 1 commit
    • Per Cederqvist's avatar
      Tell svn to ignore core files. · e37c8984
      Per Cederqvist authored
      * src/server/testsuite: Ignore core and vgcore.*.
      Replaced the "Client host" and "Client port" configuration file
      parameters with "Listen", and allow lyskomd to listen to more than
      one port.
      * doc/lyskomd.texi (Parameters): Replaced "Client host" and
      "Client port" with "Listen".
      * src/server/ramkomd.c (start_listen_sockets): New static
      function.  Listen to all the ports specified by the "Listen:"
      (server_init): Use start_listen_sockets() instead of calling
      isc_listentcp().  Removed the host and client_port arguments.  All
      callers updated.
      * src/server/testsuite/lyskomd.0/54.exp: New test suite.
      * src/server/conf-file.c (ctor_ipport_list): New static function.
      (dtor_ipport_list): New static function.
      (assign_ipport_list): New static function.
      (cf_ipport_list): New constant.
      * src/server/conf-file.h (struct ipport_entry): New struct.
      (struct ipport_list): New struct.
      (cf_ipport_list): New constant.
      * src/server/param.h (struct kom_par): Replaced "ip_client_host"
      and "ip_client_port" with "listen".
      * src/server/server-config.c (parameters): Ditto.
      * src/server/prot-a-parse-arg-c.awk: Include "conf-file.h" from
      the generated files.
      * src/server/admin.c: Include "conf-file.h".
      * src/server/aux-items.c: Ditto.
      * src/server/checkkomspace.c: Ditto.
      * src/server/conference.c: Ditto.
      * src/server/connections.c: Ditto.
      * src/server/dbck-cache.c: Ditto.
      * src/server/dbck.c: Ditto.
      * src/server/disk-end-of-atomic.c: Ditto.
      * src/server/komrunning.c: Ditto.
      * src/server/lockdb.c: Ditto.
      * src/server/membership.c: Ditto.
      * src/server/person.c: Ditto.
      * src/server/prot-a-output.c: Ditto.
      * src/server/prot-a-parse.c: Ditto.
      * src/server/prot-a.c: Ditto.
      * src/server/regex-match.c: Ditto.
      * src/server/rfc931.c: Ditto.
      * src/server/send-async.c: Ditto.
      * src/server/session.c: Ditto.
      * src/server/simple-cache.c: Ditto.
      * src/server/splitkomdb.c: Ditto.
      * src/server/text-garb.c: Ditto.
      * src/server/text.c: Ditto.
      * src/server/updateLysKOM.c: Ditto.
      * run-support/config: Removed the "Client port" setting.
      Adjust the test suite for the above change.
      * src/server/testsuite/lyskomd.0/bug-64.exp: Expect memory leaks
      due to bug 1599.
      * src/server/testsuite/lyskomd.0/53.exp: Expect a more informative
      error message when isc_listentcp fails.
      * src/server/testsuite/lyskomd.0/11.exp: Expect an IP address in
      the "Listening for clients" log message.
      * src/server/testsuite/config/unix.exp (clientport_2): New
      (clientport_3): New constant.
      (lyskomd_start): New argument: listen_messages.  Use "Listen:"
      instead of "Client port:".
      (lyskomd_fail_start): Use "Listen:" instead of "Client port:".
      (client_start): New optional argument: port.
  3. 02 Feb, 2006 1 commit
    • Per Cederqvist's avatar
      Compilation error fix. · 1ae97fc1
      Per Cederqvist authored
      * src/server/server-config.c (dump_cfg_timevals): Updated to the
      changes in struct datatype introduced yesterday.
  4. 01 Feb, 2006 2 commits
    • Per Cederqvist's avatar
      Configuration cleanup: use constructor/destructor semantics. · 7a036fc7
      Per Cederqvist authored
      * src/server/conf-file.h (struct datatype): Replaced the freer
      attribute with ctor and dtor attributes.  All users updated.
      Added some documentation.
      (free_config): New function.
      * src/server/conf-file.c (init_init): Call the constructors for
      all parameters.
      (free_config): New function, that calls the destructors for all
      (ctor_string): New static function. 
      (dtor_string): New static function, which replaces
      (assign_string): Expect the object to already be constructed.
      (unassign_string): Removed.
      (cf_string): Use ctor_string and dtor_string.
      * src/server/server-config.c (cf_log_param): Updated for new
      struct datatype.
      (cf_jubel): Ditto.
      (cf_ident_param): Ditto.
      (free_configuration): Use free_config to do the work.
    • Per Cederqvist's avatar
      Configuration file definitions: use a datatype struct, instead of · 5adef99d
      Per Cederqvist authored
      having separate "assigner" and "freer" fields in the parameter
      definition table.
      * src/server/conf-file.h (struct datatype): New struct.
      (struct parameter): Move the assigner and freer fields to struct
      datatype, and include a pointer to a const struct datatype.
      * src/server/conf-file.c, src/server/conf-file.h
      (cf_text_no): New constant struct.
      (cf_conf_no): Ditto.
      (cf_int): Ditto.
      (cf_ulong): Ditto.
      (cf_uint): Ditto.
      (cf_string): Ditto.
      (cf_bool): Ditto.
      (cf_double): Ditto.
      (cf_timeval): Ditto.
      * src/server/conf-file.c (assign_defaults): Handle configuration
      (configure_line): Ditto.
      * src/server/server-config.c (assign_path): Removed.
      (unassign_path): Removed.
      (cf_path): New. Replaces assign_path and unassign_path.
      (cf_log_param): New const struct.
      (cf_jubel): New const struct.
      (cf_ident_param): New const struct.
      (parameters): Replaced all assigners and freers with the pointers
      to the proper datatype structs.
      (free_configuration): Handle configuration datatypes.
  5. 03 Jan, 2006 1 commit
    • Per Cederqvist's avatar
      Fixed various harmless memory and file descriptor leaks found by · afb8f103
      Per Cederqvist authored
      * src/server/testsuite/lyskomd.supp: Added aid_lexer_2.
      * src/server/testsuite/lyskomd.0/regexp-match-cov.exp (shutdown):
      Don't expect any suppressed leaked blocks.
      * src/server/testsuite/lyskomd.0/aux-items-cov.exp: Expect less
      suppressed leaked blocks.
      * src/server/testsuite/lyskomd.0/37.exp: Adjusted to new report
      format when configuration errors are found.
      * src/server/testsuite/lyskomd.0/conf-file-cov.exp: Ditto.
      * src/server/simple-cache.c (free_all_cache): Close text_file and
      * src/server/testsuite/lyskomd.supp: Removed i_fopen-2.3.1 and
      i_fopen-2.3.5, which were actually caused by the above problem.
      * src/server/server-config.c (read_configuration): Check the
      return value of read_config().  Free the configuration before
      calling restart_kom if there are any problems with the
      configuration.  Report the name of the configuation file if
      problems are found.
      * src/server/ramkomd.c (dump_exit_statistics): Call clear_info()
      instead of free_kom_info.
      (free_kom_info): Removed.  The new clear_info() function contains
      a better implementation, with less code duplication.
      * src/server/memory.c, src/server/kom-memory.h (clear_info): New
      * src/server/dbck.c (free_person_scratchpad): New static function.
      (free_person_scratch): Ditto.
      (main): Call free_person_scratch(), clear_info(),
      free_configuration() and free_all_dbck_cache() when terminating to
      make it possible to check for leaks with valgrind.
      * src/server/dbck-cache.c, src/server/dbck-cache.h
      (free_all_dbck_cache): New function.
      * src/server/conf-file.c, src/server/conf-file.h (read_config):
      Changed return type from void to Success.  Return FAILURE instead
      of calling restart_kom when configuration errors are found.
  6. 03 Oct, 2003 1 commit
    • Per Cederqvist's avatar
      (parameters): Added these parameters: · 2c356e29
      Per Cederqvist authored
          Free space warning level
          Free space warning percent
          Free inodes warning level
          Free inodes warning percent
          Free space critical level
          Free space critical percent
          Free inodes critical level
          Free inodes critical percent
  7. 29 Aug, 2003 1 commit
  8. 23 Aug, 2003 1 commit
  9. 20 Aug, 2003 1 commit
  10. 16 Aug, 2003 2 commits
    • Per Cederqvist's avatar
      Refer to Bugzilla, not email. · d8b0b96a
      Per Cederqvist authored
    • Per Cederqvist's avatar
      (assign_path): New define for assign_string. · e777f069
      Per Cederqvist authored
      (unassign_path): New define for unassign_string.
      (parameters): Use assign_path and unassign_path for all path
      	parameters, to make them easier to find.  Use default values
      	from paths.h instead of hardcoding the defaults in the file.
      	A lot of values have changed; see the summary in the NEWS
      (CONFIG_FILE): Removed.  This is now a define in paths.h.
      (compiled_config_file): New constant.
      (get_default_config_file_name): Use compiled_config_file instead
      	of CONFIG_FILE.
      (free_default_config_file_name): Ditto.
  11. 15 Aug, 2003 1 commit
    • Per Cederqvist's avatar
      (read_config_file): Variable removed. · 3c9a4850
      Per Cederqvist authored
      (CONFIG_FILE): Now static.
      (default_config): New static variable.
      (get_default_config_file_name): New function.
      (free_default_config_file_name): New function.
      (DEFAULT_DBASE_DIR): Removed.
  12. 14 Aug, 2003 1 commit
  13. 03 Aug, 2003 1 commit
  14. 02 Aug, 2003 1 commit
  15. 01 Aug, 2003 1 commit
  16. 31 Jul, 2003 1 commit
  17. 24 Jul, 2003 1 commit
  18. 13 Jul, 2003 1 commit
  19. 12 Jul, 2003 4 commits
  20. 04 Jan, 2003 1 commit
  21. 15 Nov, 2002 1 commit
  22. 04 Nov, 2002 1 commit
  23. 26 Oct, 2002 1 commit
  24. 04 Oct, 2002 1 commit
  25. 16 Aug, 2002 1 commit
  26. 11 Aug, 2002 1 commit
  27. 10 Aug, 2002 1 commit
  28. 29 Mar, 2002 1 commit
  29. 15 Feb, 2002 1 commit
  30. 04 Nov, 2001 1 commit
  31. 03 Nov, 2001 1 commit
  32. 28 Oct, 1999 1 commit
  33. 24 Jul, 1999 1 commit
  34. 10 Jul, 1999 1 commit
  35. 20 Jun, 1999 1 commit