Changeset 425 for trunk/src/sh_hash.c
- Timestamp:
- Feb 20, 2013, 7:30:02 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/sh_hash.c
r405 r425 3035 3035 } 3036 3036 3037 /* --------- Skip if we don't want to report changes. ------------ 3038 */ 3039 3040 if (S_TRUE == sh_ignore_chk_mod(theFile->fullpath)) 3041 { 3042 goto unlock_and_return; 3043 } 3044 3037 3045 p->modi_mask = theFile->check_mask; 3038 3046 … … 3057 3065 else 3058 3066 { 3059 if (0 != strncmp (&fileHash[KEY_LEN + 1], 3060 p->theFile.checksum, KEY_LEN)) 3067 if (0 != strncmp (&fileHash[KEY_LEN + 1], p->theFile.checksum, KEY_LEN)) 3061 3068 { 3062 modi_mask |= MODI_CHK; 3063 change_code[0] = 'C'; 3064 TPT ((0, FIL__, __LINE__, _("mod=<checksum>"))); 3069 if (S_FALSE == sh_check_rotated_log (theFile->fullpath, (UINT64) p->theFile.size, 3070 (UINT64) p->theFile.ino, p->theFile.checksum)) 3071 { 3072 modi_mask |= MODI_CHK; 3073 change_code[0] = 'C'; 3074 TPT ((0, FIL__, __LINE__, _("mod=<checksum>"))); 3075 } 3076 else 3077 { 3078 /* logfile has been rotated */ 3079 p->theFile.size = theFile->size; 3080 p->theFile.ino = theFile->ino; 3081 sl_strlcpy(p->theFile.checksum, fileHash, KEY_LEN+1); 3082 } 3065 3083 } 3066 3084 else
Note:
See TracChangeset
for help on using the changeset viewer.