1. 15 Jul, 2010 9 commits
  2. 08 Jul, 2010 10 commits
    • Per Cederqvist's avatar
      patch use-nettle.patch · 94b5710a
      Per Cederqvist authored
    • Per Cederqvist's avatar
      This file adds 3 source files from · ad28f74a
      Per Cederqvist authored
      http://www.lysator.liu.se/~nisse/archive/nettle-1.15.tar.gz under
      different names.
          Original name	lyskomd name
          macros.h 		src/server/nettle-macros.h
          sha.h		src/server/nettle-sha.h
          sha256.c		src/server/nettle-sha256.c
    • Per Cederqvist's avatar
    • Per Cederqvist's avatar
      patch refactor-cached_get_text.patch · 560a74da
      Per Cederqvist authored
    • Per Cederqvist's avatar
      patch introduce-generation_position.patch · de22d96e
      Per Cederqvist authored
    • Per Cederqvist's avatar
      Create empty files text-store.h and text-store.c, and include them · 26d67f86
      Per Cederqvist authored
      	in the link.
      	* src/server/text-store.h: New file, currently empty.
      	* src/server/text-store.c: New file.  Include text-store.h, but do
      	not yet do anything.
      	* src/server/Makefile.am (DISKOBJS): Added text-store.c and
      	(DBCK): Added text-store.c.
    • Per Cederqvist's avatar
      Remove the reclamation field of Text_stat. · 46ec1c8b
      Per Cederqvist authored
      	* src/include/kom-types.h (Text_stat): Remove the reclamation
      	field.  It was a mistake to add it 2006-11-06.
      	* src/server/dbck-cache.c (cached_flush_text): Don't touch
      	* 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.
    • Per Cederqvist's avatar
      Write dbfiles atomically, renaming them once complete. · 50e88538
      Per Cederqvist authored
      Added support for renaming a datafile once it has been completely
      written, and to write it using a temporary extension.
      * src/server/ram-io.h (struct dbfile): Added fields fn,
      tmp_extension and tmp_fn.  Added documentation.
      (dbfile_open_write): New argument: tmp_extension.
      (dbfile_rename): New function.
      (dbfile_abort): New function.
      * src/server/ram-io.c (dbfile_new): Initialize fn, tmp_extension
      and tmp_fn.
      (current_fn): New static function.  Return tmp_fn if non-NULL,
      otherwise fn.
      (dbfile_delete): Free the new fields fn, tmp_extension and
      (dbfile_open_write): New argument: tmp_extension.  Store a copy of
      the supplied filename.  If tmp_extension is non-NULL, store a copy
      of it, and compute the actual file name to open as the filname
      followed by the tmp_extension.
      (fsync_dirname): New static function.
      (dbfile_rename): New function.  Rename the file from tmp_fn to the
      wanted final filename, and sync the directory.
      (dbfile_abort): New function.
      * src/server/dbck-cache.c (cache_sync_all): Pass a NULL pointer as
      tmp_extension of dbfile_open_write(), to get the old behavior.
      * src/server/simple-cache.c (pre_sync): Ditto.
    • Per Cederqvist's avatar
      Created the utility function sstrdup. · 0cb622ac
      Per Cederqvist authored
      * src/server/ram-smalloc.c, src/include/server/smalloc.h:
      (sstrdup): New function.
    • Per Cederqvist's avatar
      Check the magic cookie when opening database files. · b7c6921e
      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.
  3. 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
  4. 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
  5. 22 May, 2010 1 commit
  6. 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.
  7. 31 Mar, 2010 3 commits
  8. 30 Mar, 2010 3 commits
  9. 12 Oct, 2009 1 commit
  10. 06 Oct, 2009 1 commit
  11. 31 May, 2009 7 commits
  12. 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".
  13. 14 Jul, 2007 1 commit