- Timestamp:
- Dec 21, 2006, 10:33:47 PM (18 years ago)
- Location:
- trunk/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/sh_files.c
r68 r77 2031 2031 ++sh.statistics.files_checked; 2032 2032 2033 if ( sh.flag.checkSum == SH_CHECK_INIT && sh.flag.update == S_FALSE)2033 if ( sh.flag.checkSum == SH_CHECK_INIT /* && sh.flag.update == S_FALSE */) 2034 2034 { 2035 2035 sh_hash_pushdata (&theFile, fileHash); 2036 }2037 else if (sh.flag.checkSum == SH_CHECK_INIT && sh.flag.update == S_TRUE )2038 {2039 if (0 == sh_hash_compdata (class, &theFile, fileHash, NULL, -1))2040 {2041 sh_hash_pushdata (&theFile, fileHash);2042 }2043 2036 } 2044 2037 else if (sh.flag.checkSum == SH_CHECK_CHECK -
trunk/src/sh_hash.c
r76 r77 535 535 } 536 536 537 /* We rewrite the db on update, thus we need to push this out537 /* We rewrite the db on update, thus we need to keep this 538 538 * if the user does not want to purge it from the db. 539 539 */ 540 if (sh.flag.checkSum == SH_CHECK_INIT && 541 sh.flag.update == S_TRUE && 542 S_FALSE == sh_util_ask_update(p->fullpath)) 543 { 544 theFile = sh_hash_create_ft (p, fileHash); 545 sh_hash_pushdata (theFile, fileHash); 546 if (theFile->attr_string) 547 SH_FREE(theFile->attr_string); 548 SH_FREE(theFile); 549 } 550 551 if (sh.flag.reportonce == S_TRUE) 540 541 if ((sh.flag.reportonce == S_TRUE && sh.flag.update == S_FALSE) || 542 (S_TRUE == sh.flag.update && S_TRUE == sh_util_ask_update(p->fullpath))) 552 543 { 553 544 #ifdef REPLACE_OLD … … 2611 2602 if (p == NULL) 2612 2603 { 2613 if (sh.flag.reportonce == S_TRUE)2614 {2615 p = sh_hash_push_int(theFile, fileHash);2616 hashinsert (p);2617 if (p)2618 p->modi_mask = theFile->check_mask;2619 2620 }2621 2622 2604 if (S_FALSE == sh_ignore_chk_new(theFile->fullpath)) 2623 2605 { … … 2637 2619 if (sh.flag.reportonce == S_TRUE) 2638 2620 theFile->reported = S_TRUE; 2639 2640 if (sh.flag.isdaemon == S_FALSE && sh.flag.update == S_TRUE ) 2641 { 2642 if (S_FALSE == sh_util_ask_update (theFile->fullpath)) 2621 2622 if (sh.flag.reportonce == S_TRUE && sh.flag.update == S_FALSE) 2623 { 2624 p = sh_hash_push_int(theFile, fileHash); 2625 hashinsert (p); 2626 if (p) 2627 p->modi_mask = theFile->check_mask; 2628 } 2629 2630 else if (S_TRUE == sh.flag.update) 2631 { 2632 if (S_TRUE == sh_util_ask_update (theFile->fullpath)) 2633 { 2634 p = sh_hash_push_int(theFile, fileHash); 2635 hashinsert (p); 2636 if (p) 2637 p->modi_mask = theFile->check_mask; 2638 } 2639 else 2643 2640 { 2644 2641 SL_RETURN(1, _("sh_hash_compdata")); 2645 } 2646 } 2642 } 2643 } 2644 2647 2645 SL_RETURN(0, _("sh_hash_compdata")); 2648 2646 } … … 3264 3262 SL_RETURN(1, _("sh_hash_compdata")); 3265 3263 } 3266 else if (sh.flag.reportonce == S_TRUE)3264 else /* if (sh.flag.reportonce == S_TRUE) */ 3267 3265 { 3268 3266 /* we replace the data in the in-memory copy of the -
trunk/src/sh_processcheck.c
r76 r77 163 163 static const short SH_PR_ANY = 0x1000; 164 164 165 /* /proc: 166 * linux: /proc/pid/exe 167 * freebsd: /proc/pid/file 168 * solaris10: /proc/pid/path/a.out 169 */ 170 165 171 struct watchlist { 166 172 char * str; -
trunk/src/sh_readconf.c
r68 r77 867 867 { N_("addokchars"), SH_SECTION_MISC, SH_SECTION_NONE, 868 868 sh_util_obscure_ok }, 869 { N_("filenamesareutf8"), SH_SECTION_MISC, SH_SECTION_NONE, /* FIXME document this option */869 { N_("filenamesareutf8"), SH_SECTION_MISC, SH_SECTION_NONE, 870 870 sh_util_obscure_utf8 }, 871 871 { N_("setrecursionlevel"), SH_SECTION_MISC, SH_SECTION_NONE,
Note:
See TracChangeset
for help on using the changeset viewer.