I've been trying to figure out why folder -all -fast keeps missing one
folder. Turns out that an optimization in folder.c causes the
expected folder count to be incorrect if you have symlinked another
folder into your folder hierarchy. Here's a patch against 0.24:
*** folder.c.orig Sat Apr 11 14:37:13 1998
--- folder.c Sat Apr 11 14:37:59 1998
***************
*** 738,744 ****
strcpy (cp, dp->d_name);
if (stat (name, &st) != -1 && S_ISDIR(st.st_mode)) {
addfold (base);
! nlink--;
}
}
--- 738,745 ----
strcpy (cp, dp->d_name);
if (stat (name, &st) != -1 && S_ISDIR(st.st_mode)) {
addfold (base);
! if (lstat (name, &st) != -1 && S_ISDIR(st.st_mode))
! nlink--;
}
}
Mark
--
Mark D. Nagel <nagel(_at_)intelenet(_dot_)net> in | tele | net communications
CCIE #3177 18101 Von Karman Avenue, Suite 550
Irvine, CA 92612
714/851-8250 (voice), 714/851-1088 (fax), http://www.intelenet.net/ (web)