Changeset 493 for trunk


Ignore:
Timestamp:
Nov 1, 2015, 4:18:59 PM (9 years ago)
Author:
katerina
Message:

Fix for ticket #391 (timezone offset calculation).

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/docs/Changelog

    r492 r493  
    114.1.1:
     2        * fix problem with timezone calculation on month rollover for
     3        negative timezones (west of GMT; reported by Bond)
    24        * fix problem with rotated logfiles when content is always constant,
    35        i.e. checksum does not change (reported by Bond).
  • trunk/src/sh_unix.c

    r488 r493  
    23162316      /* Check for datum wrap-around.
    23172317       */
    2318       if      (aa.tm_year < bb.tm_year)
     2318      if      ((aa.tm_mday == 1) && (aa.tm_mday < bb.tm_mday))
     2319        sign = ( 1);
     2320      else if (aa.tm_year < bb.tm_year)
    23192321        sign = (-1);
    23202322      else if (aa.tm_mon  < bb.tm_mon)
  • trunk/test/testhash.sh

    r491 r493  
    6363        fi
    6464        #
    65         ${TOP_SRCDIR}/configure --enable-debug=gdb --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-login-watch' '--enable-mounts-check' ${C_LOGFILE} '--enable-port-check' '--enable-message-queue' '--enable-suidcheck' '--disable-dnmalloc'
     65        ${TOP_SRCDIR}/configure --enable-debug=gdb --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-login-watch' '--enable-mounts-check' ${C_LOGFILE} '--enable-port-check' '--enable-process-check' '--enable-message-queue' '--enable-suidcheck' '--disable-dnmalloc'
    6666        #
    6767        fail=0
Note: See TracChangeset for help on using the changeset viewer.