Changeset 77 for trunk/src/sh_hash.c
- Timestamp:
- Dec 21, 2006, 10:33:47 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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
Note:
See TracChangeset
for help on using the changeset viewer.