Changeset 59 for trunk/src/sh_unix.c


Ignore:
Timestamp:
Aug 31, 2006, 9:25:02 PM (18 years ago)
Author:
rainer
Message:

Fix for exit status if database load fails; fix for problem with GrowingLogFiles if signed database is used; better support for *BSD init script installation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/sh_unix.c

    r52 r59  
    28432843  SL_ENTER(_("sh_unix_checksum_size"));
    28442844
    2845   /* lookup file in database */
    2846   status = sh_hash_get_it (filename, &tmpFile);
    2847   if (status != 0) {
    2848     goto out;
    2849   }
     2845  if (sh.flag.checkSum != SH_CHECK_INIT)
     2846    {
     2847      /* lookup file in database */
     2848      status = sh_hash_get_it (filename, &tmpFile);
     2849      if (status != 0) {
     2850        goto out;
     2851      }
     2852    }
     2853  else
     2854    {
     2855      tmpFile.size = fbuf->st_size;
     2856    }
    28502857
    28512858  /* if last < current get checksum */
     
    28532860    {
    28542861      sl_strlcpy(fileHash,
    2855                 sh_tiger_generic_hash (filename, TIGER_FD, tmpFile.size,
    2856                                        alert_timeout),
    2857                 KEY_LEN+1);
     2862                 sh_tiger_generic_hash (filename, TIGER_FD, tmpFile.size,
     2863                                        alert_timeout),
     2864                 KEY_LEN+1);
    28582865
    28592866      /* return */
Note: See TracChangeset for help on using the changeset viewer.