1. 13 Apr, 2014 4 commits
    • Per Cederqvist's avatar
      Minor debug log fix. · 0c2509f9
      Per Cederqvist authored
      * src/server/simple-cache.c
        (cached_get_text): [LOGACC]: Log an lt_text_mass event even if the
          text-stat cannot be found.
    • Per Cederqvist's avatar
      Indentation fixes. · 2e180237
      Per Cederqvist authored
      * src/server/simple-cache.c
        (cached_get_text): Indentation fixes.
    • Per Cederqvist's avatar
      Only generation 0 is supported, for now. · b2108c6a
      Per Cederqvist authored
      * src/server/dbck-cache.c
        (cached_get_text): Call restart_kom if attempting to handle a non-0
    • Per Cederqvist's avatar
      Remove the reclamation field of Text_stat. · 6ca2945d
      Per Cederqvist authored
      It was a mistake to add it 2006-11-06.
      * src/include/kom-types.h
        (Text_stat): Remove the reclamation field.
      * src/server/dbck-cache.c
        (cached_flush_text): Don't touch reclamation.
      * src/server/memory.c
        (copy_text_stat): Ditto.
        (init_text_stat): Ditto.
      * src/server/ram-output.c
        (foutput_text_stat_3): Ditto.
      * src/server/ram-parse.c
        (fparse_text_stat_3): Ditto.
        (fparse_text_stat_2): Ditto.
        (fparse_text_stat_0): Ditto.
      * src/server/simple-cache.c
        (cached_create_text): Ditto.
  2. 09 Mar, 2014 3 commits
    • Per Cederqvist's avatar
      Check the magic cookie when opening database files. · 79ea8ccb
      Per Cederqvist authored
      * src/server/ram-io.c (dbfile_open_read): New argument:
      wanted_magic.  Log a message and return NULL if the file contains
      the wrong magic cookie.  All callers updated to supply "CLEAN" as
      the magic cookie.
    • Per Cederqvist's avatar
      "make distcheck" complained that a core file was left behind. · 2ce5c3e3
      Per Cederqvist authored
      * src/server/testsuite/Makefile.am (DISTCLEANFILES): Remove core.
    • Per Cederqvist's avatar
      Re-generate more automake-generated files. · 3aabb690
      Per Cederqvist authored
      * mkmi: Remove more files so that they can be re-generated by automake:
  3. 13 Feb, 2014 1 commit
    • Per Cederqvist's avatar
      Fix overflow detection when parsing time periods. · 8fd90eaf
      Per Cederqvist authored
      This was broken on systems where a time_t has more bits than an int.
      * src/server/conf-file.c (assign_timeval): Cast to time_t instead of
        int when trying to find the fractional seconds.  The old code was
        broken if the tv_sec field of a struct timeval was a type larger
        than an int, and in contemporary systems tv_sec is a time_t.  Also,
        inline the timeval_ctor function to avoid type mismatches (all other
        uses of timeval_ctor are safe, as they use small constants).
  4. 12 Feb, 2014 10 commits
    • Per Cederqvist's avatar
      Handle the new automake-generated file "compile". · 60e03588
      Per Cederqvist authored
      * .gitignore: Ignore the "compile" file created by automake.
      * mkmi: Remove scripts/compile before re-running autotools.
    • Per Cederqvist's avatar
      Ignore the texi2dvi "tidy" mode work area. · de43b573
      Per Cederqvist authored
      * doc/.gitignore: Ignore lyskomd.t2d.
    • Per Cederqvist's avatar
      Fix bad Texinfo usage. · 9dfb157b
      Per Cederqvist authored
      * doc/Protocol-A.texi (Conference Types): @itemx must follow
        @item. Replaced the first @itemx with @item.
    • Per Cederqvist's avatar
      Texinfo modernization. · 0175c3e0
      Per Cederqvist authored
      * doc/Protocol-A.texi: Modernize use of @title and @subtitle.  The
        apparently no longer want the arguments in braces.
      * doc/constructs.expected: Updated to track the above change.
    • Per Cederqvist's avatar
      Remove Gentoo hack for selecting autoconf and automake versions. · 5d67628f
      Per Cederqvist authored
      * mkmi: Don't set WANT_AUTOMAKE and WANT_AUTOCONF.  This probably only
        had any effect on Gentoo, and the versions specified are ancient by
    • Per Cederqvist's avatar
      Modernize how to pass -I options to the C compiler. · b150be5b
      Per Cederqvist authored
      * src/libraries/liboop/Makefile.am (INCLUDES): Remove, as this is
        no longer supported by automake.
        (AM_CPPFLAGS): Add the include options that were present in INCLUDES
        here instead.
    • Per Cederqvist's avatar
      Remove all traces of ansi2knr. · 663dc116
      Per Cederqvist authored
      * configure.ac (AM_C_PROTOTYPES): Remove this obsolete macro.
    • Per Cederqvist's avatar
      Modernize use of AM_INIT_AUTOMAKE and AC_INIT. · 324c8a06
      Per Cederqvist authored
      * src/libraries/libisc-new/configure.ac: (AM_INIT_AUTOMAKE): This
        macro no longer expects the package name and version number, so
        don't provide it.
      * src/libraries/adns/configure.ac: Ditto.
      * src/libraries/liboop/configure.ac: Ditto.  Use AC_CONFIG_SRCDIR
        instead of passing a file name to AC_INIT.  Provide the package
        name and version number to AC_INIT.
    • Per Cederqvist's avatar
      Modernize autoconf m4 macros from fsusage. · 23efe579
      Per Cederqvist authored
      (We should probably pick up a new version from a current fileutils
      version instead.)
      * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Added missing quoting.
      * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Ditto.
      * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Ditto.
      * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Ditto. Also, move the
      	AC_PREREQ macro into the body of jm_AC_TYPE_UINTMAX_T, as the
      	automake manual says should be done.
    • Per Cederqvist's avatar
      Renamed configure.in to configure.ac. · 9d4e3869
      Per Cederqvist authored
      * configure.ac: New name for former configure.in.
      * src/libraries/adns/configure.ac: Ditto.
      * src/libraries/libisc-new/configure.ac: Ditto.
  5. 02 Jan, 2014 1 commit
    • Per Cederqvist's avatar
      Minor coding standard change to help GNU complexity. · 3be63740
      Per Cederqvist authored
      * src/server/dbck-cache.c (cached_lock_person, cached_unlock_person)
        (cached_lock_conf, cached_unlock_conf): Put the closing brace on a
        separate line on each of these empty functions.  Otherwise, GNU
        complexity 1.1 complained that they ended before the closing brace.
  6. 02 Aug, 2013 1 commit
  7. 01 Aug, 2013 2 commits
    • Per Cederqvist's avatar
      The test suite can now log what it is waiting for. · 356b95b5
      Per Cederqvist authored
      * src/server/testsuite/config/unix.exp (extracting_expect): Log the
        string we wait for at verbosity 2.
    • Per Cederqvist's avatar
      Adapt the test suite for the off-by-one fix made 2012-11-15. · 9e878918
      Per Cederqvist authored
      * src/server/testsuite/lyskomd.0/11.exp: Decrease the number of
        confs and texts we expect by one.
      * src/server/testsuite/lyskomd.0/54.exp: Ditto.
      * src/server/testsuite/lyskomd.0/bug-1121.exp: Ditto.
      * src/server/testsuite/lyskomd.0/bug-52.exp (start): Ditto.
      * src/server/testsuite/lyskomd.0/bug-64.exp: Ditto.
      * src/server/testsuite/lyskomd.0/bug-877.exp: Ditto.
      * src/server/testsuite/config/unix.exp (lyskomd_start): Decrease
        the default values for confs and texts.
  8. 29 Jul, 2013 1 commit
  9. 22 Jul, 2013 1 commit
    • Per Cederqvist's avatar
      Only run the test suite if expect can handle long regexps. · 578eaccd
      Per Cederqvist authored
      * src/server/testsuite/dejagnu.0/01-long-regexp.exp: Test that expect
      can handle a really long regular expression.  This test fails when
      using TCL 8.6.0 and expect 5.45 under Linux (Ubuntu 13.04, but with
      TCL and expect compiled from source).
  10. 11 Jun, 2013 1 commit
  11. 18 Jan, 2013 1 commit
  12. 14 Jan, 2013 1 commit
  13. 19 Nov, 2012 1 commit
    • Per Cederqvist's avatar
      Minor doc fix. · e4e61a2d
      Per Cederqvist authored
      * doc/Protocol-A.texi (lookup-z-name): Fixed bug in example (an answer
      had the wrong ref-no).  Thanks to Anders E Larsson who found the
  14. 15 Nov, 2012 1 commit
  15. 26 Aug, 2012 3 commits
  16. 16 May, 2012 1 commit
  17. 19 Jan, 2012 2 commits
  18. 20 Apr, 2011 1 commit
  19. 19 Jun, 2010 1 commit
    • Per Cederqvist's avatar
      Refuse to run the test suite if expect is broken. · 7f11c20f
      Per Cederqvist authored
      This causes "make check" to fail quickly if running on an expect that
      has broken handling of zero-lenght writes, or if expect is really,
      really slow due to broken glob gate.
      * src/server/testsuite/Makefile.am (check-l2g): Depend on
      (check-lyskomd): Ditto.
      (check-leaks): Ditto.
      (working-dejagnu): New target.
      (EXTRA_DIST): Added dejagnu.0/00-zero-length-write.exp and
      * src/server/testsuite/dejagnu.0/00-zero-length-write.exp: New
      test, that fails on known bad versions of expect.
      * src/server/testsuite/dejagnu.0/90-slow-glob-gate.exp: New test,
      that fails if a simple regexp pattern causes expect to run too
      slow, indicating that it is converted to a glob pattern that
      causes a lot of backtracking.
      * src/server/testsuite/.gitignore: Ignore dejagnu.log and
  20. 23 May, 2010 1 commit
    • Per Cederqvist's avatar
      Don't attempt to use DNS when no nameserver is available. · 0deaed08
      Per Cederqvist authored
      * src/server/testsuite/Makefile.am (site.exp): Set use_dns to yes
      or no depending on if adnshost can resolve or not.
      * src/server/testsuite/config/unix.exp (lyskomd_start): Set the
      "Use DNS" configuration depending on the use_dns setting from
  21. 22 May, 2010 1 commit
  22. 18 Apr, 2010 1 commit
    • Per Cederqvist's avatar
      Texinfo syntax compatibility. · 1573f370
      Per Cederqvist authored
      * doc/Protocol-A.texi: Don't use "@begin tex" instead of "@tex".  That
      construct worked in texinfo.tex version 2003-11-16.09, but support was
      removed in 2003-11-29.14.