Changeset 59 for trunk/src/sh_unix.c
- Timestamp:
- Aug 31, 2006, 9:25:02 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/sh_unix.c
r52 r59 2843 2843 SL_ENTER(_("sh_unix_checksum_size")); 2844 2844 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 } 2850 2857 2851 2858 /* if last < current get checksum */ … … 2853 2860 { 2854 2861 sl_strlcpy(fileHash, 2855 sh_tiger_generic_hash (filename, TIGER_FD, tmpFile.size,2856 2857 KEY_LEN+1);2862 sh_tiger_generic_hash (filename, TIGER_FD, tmpFile.size, 2863 alert_timeout), 2864 KEY_LEN+1); 2858 2865 2859 2866 /* return */
Note:
See TracChangeset
for help on using the changeset viewer.