Commits on Jun 8, 2010
  1. Use daemon(), if available.

    Regenerate configure. Yeah, I have no idea why I checked this is
    in version control too.
    committed Jun 8, 2010

    Check length of command line arguments before doing a strcpy().
    committed Jun 8, 2010
Commits on Jun 7, 2010
  1. Replace strlen/malloc/strcpy with strdup

    As mostly a cosmetic change, replace the strlen + malloc + strcpy
    with strdup.
    Under certain conditions, a non-null terminated string can be
    returned by readline(). For example, on Solaris, a large (2+ Gb)
    log file will return truncated data, if logsurfer has not been
    compiled with _FILE_OFFSET_BITS=64.
    This will cause strlen() to crash (now strdup() will crash with a
    memory error :)
    committed Jun 7, 2010
  2. compiler warning

    committed Jun 7, 2010
  3. Add options to daemonize and follow files

    Add -D option to run as a daemon. This should be replaced by daemon()
    where it is available.
    Add -F option to periodically stat files for inode changes and re-open,
    similar to "tail -F"
    committed Jun 7, 2010
  4. segfault if config file empty

    Patch similar to OpenBSD/FreeBSD ports
    committed Jun 7, 2010
  5. Import Logsurfer+ 1.7a

    committed Jun 7, 2010