Changeset 19 for trunk/src/sh_files.c
- Timestamp:
- Feb 12, 2006, 10:49:56 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/sh_files.c
r8 r19 590 590 if (0 == strncmp(myword, _("HLN"), 3)) 591 591 sh_files_set_mask (mask, MODI_HLN, act); 592 /* size may grow */ 593 if (0 == strncmp(myword, _("GROW"), 3)) 594 sh_files_set_mask (mask, MODI_SGROW, act); 595 /* use prelink */ 596 if (0 == strncmp(myword, _("PRE"), 3)) 597 sh_files_set_mask (mask, MODI_PREL, act); 592 598 593 599 } … … 1010 1016 ++dcount; 1011 1017 } 1012 ptr->checked = S_TRUE; 1018 ptr->checked = S_TRUE; 1019 ptr->childs_checked = S_TRUE; 1013 1020 } 1014 1021 … … 1425 1432 1426 1433 dirstack_t * dst_ptr; 1434 dirstack_t * tmp_ptr; 1427 1435 1428 1436 int hardlink_num = 0; … … 1645 1653 file_class_next = dst_ptr->class; 1646 1654 checked_flag = dst_ptr->checked; 1647 cchecked_flag = dst_ptr->childs_checked; 1655 /* not set, hence always FALSE */ 1656 /* cchecked_flag = dst_ptr->childs_checked; */ 1648 1657 } 1649 1658 … … 1708 1717 cchecked_flag = -1; 1709 1718 1710 dst_ptr = (dirstack_t *) zAVLSearch(zdirListOne, tmpcat);1711 1712 if ( dst_ptr)1719 tmp_ptr = (dirstack_t *) zAVLSearch(zdirListOne, tmpcat); 1720 1721 if (tmp_ptr) 1713 1722 { 1714 1723 TPT((0, FIL__, __LINE__, 1715 1724 _("msg=<%s -> recursion depth %d\n>"), 1716 dst_ptr->name, dst_ptr->rdepth));1717 rdepth_next = dst_ptr->rdepth;1718 class_next = dst_ptr->class;1725 tmp_ptr->name, tmp_ptr->rdepth)); 1726 rdepth_next = tmp_ptr->rdepth; 1727 class_next = tmp_ptr->class; 1719 1728 /* 28. Aug 2001 reversed 1720 1729 */ 1721 cchecked_flag = dst_ptr->childs_checked;1722 checked_flag = dst_ptr->checked;1730 cchecked_flag = tmp_ptr->childs_checked; 1731 checked_flag = tmp_ptr->checked; 1723 1732 } 1724 1733 1725 1734 if (checked_flag == -1) 1726 1735 { 1727 dst_ptr = (dirstack_t *) zAVLSearch(zdirListTwo, tmpcat);1728 1729 if ( dst_ptr)1736 tmp_ptr = (dirstack_t *) zAVLSearch(zdirListTwo, tmpcat); 1737 1738 if (tmp_ptr) 1730 1739 { 1731 1740 TPT((0, FIL__, __LINE__, 1732 1741 _("msg=<%s -> recursion depth %d\n>"), 1733 dst_ptr->name, dst_ptr->rdepth));1734 rdepth_next = dst_ptr->rdepth;1735 class_next = dst_ptr->class;1742 tmp_ptr->name, tmp_ptr->rdepth)); 1743 rdepth_next = tmp_ptr->rdepth; 1744 class_next = tmp_ptr->class; 1736 1745 /* 28. Aug 2001 reversed 1737 1746 */ 1738 cchecked_flag = dst_ptr->childs_checked;1739 checked_flag = dst_ptr->checked;1747 cchecked_flag = tmp_ptr->childs_checked; 1748 checked_flag = tmp_ptr->checked; 1740 1749 } 1741 1750 } … … 1745 1754 sh_files_checkdir (class_next, rdepth_next, tmpcat, 1746 1755 dirlist->sh_d_name); 1747 dst_ptr->childs_checked = S_TRUE; 1756 tmp_ptr->childs_checked = S_TRUE; 1757 /* 1758 * 04. Feb 2006 avoid double checking 1759 */ 1760 tmp_ptr->checked = S_TRUE; 1748 1761 } 1749 1762 else if (checked_flag == -1) … … 1768 1781 1769 1782 dirlist = dirlist->next; 1783 1784 if (dst_ptr) 1785 dst_ptr->childs_checked = S_TRUE; 1770 1786 1771 1787 } while (dirlist != NULL); … … 1820 1836 */ 1821 1837 char fullpath[PATH_MAX]; 1822 char fileHash[ KEY_LEN + 1];1838 char fileHash[2*(KEY_LEN + 1)]; 1823 1839 int status; 1824 1840 file_type theFile;
Note:
See TracChangeset
for help on using the changeset viewer.