Changeset 354


Ignore:
Timestamp:
Aug 24, 2011, 8:37:24 PM (13 years ago)
Author:
katerina
Message:

Fix for ticket #259 (option --enable-db-reload broken).

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/docs/Changelog

    r352 r354  
    112.8.6:
     2        * Fix --enable-db-reload option (reported by David L.)
     3        * Fix samhain_kmem compilation, need to compile under chosen
     4          name if --enable-install-name is used (reported by David L.)
    25        * Fix uninitialized string in error message (reported by mimox)
    36
  • trunk/src/samhain.c

    r317 r354  
    18201820#ifdef RELOAD_DATABASE
    18211821              sh_hash_hashdelete();
     1822
     1823              if (0 != sl_strcmp(file_path('D', 'R'), _("REQ_FROM_SERVER")))
     1824                {
     1825                  char hashbuf[KEYBUF_SIZE];
     1826                  (void) sl_strlcpy(sh.data.hash,
     1827                                    sh_tiger_hash (file_path('D', 'R'),
     1828                                                   TIGER_FILE, TIGER_NOLIM,
     1829                                                   hashbuf, sizeof(hashbuf)),
     1830                                    KEY_LEN+1);
     1831                }
    18221832#endif
    18231833              (void) sl_trust_purge_user();
  • trunk/src/sh_hash.c

    r347 r354  
    13421342
    13431343      sl_strlcpy (sh.data.hash,
    1344                   sh_tiger_hash (file_path('C', 'R'), 
     1344                  sh_tiger_hash (file_path('D', 'R'), 
    13451345                                 fd, TIGER_NOLIM, hashbuf, sizeof(hashbuf)),
    13461346                  KEY_LEN+1);
  • trunk/test/testhash.sh

    r257 r354  
    5858        fi
    5959        #
    60         ${TOP_SRCDIR}/configure --quiet $TRUST --prefix=$PW_DIR --localstatedir=$PW_DIR --with-config-file=$RCFILE --with-log-file=$LOGFILE --with-pid-file=$PW_DIR/.samhain_lock --with-data-file=$PW_DIR/.samhain_file --enable-debug '--enable-login-watch' '--enable-mounts-check' ${C_LOGFILE} '--enable-process-check' '--enable-port-check' '--enable-suidcheck' '--with-rnd=unix'
     60        ${TOP_SRCDIR}/configure --quiet $TRUST --prefix=$PW_DIR --localstatedir=$PW_DIR --with-config-file=$RCFILE --with-log-file=$LOGFILE --with-pid-file=$PW_DIR/.samhain_lock --with-data-file=$PW_DIR/.samhain_file --enable-db-reload --enable-debug '--enable-login-watch' '--enable-mounts-check' ${C_LOGFILE} '--enable-process-check' '--enable-port-check' '--enable-suidcheck' '--with-rnd=unix'
    6161        #
    6262        fail=0
Note: See TracChangeset for help on using the changeset viewer.