On Wed, 2006 Nov 01 20:58:21 +0000, James Youngman wrote: > > If we see a DT_UNKNOWN before anything else in a directory, we > wouldn't know whether to assume it's a directory or not, unless we had > previously seen a DT_DIR for "." or "..".
I take it there's a good reason for not using scandir(), with a custom sort function... always forcing "."/".." to the top seems like it would make life easier. > >If not, it might be sufficient to check if the directory's canonical > >path is under /afs. (You're never going to have AFS mounted on e.g. /usr > >or /mnt/afs.) > > It's not always possible to figure out the canonical path (for example > if a parent of the start point has no execute permission). AFS in many respects disregards the Unix mode bits, giving primacy to ACLs. If you could enumerate the ways in which a canonical path might not be obtainable, I can test to see if any of them apply to AFS. --Daniel -- NAME = Daniel Richard G. ## Remember, skunks _\|/_ meef? EMAIL1 = [EMAIL PROTECTED] ## don't smell bad--- (/o|o\) / EMAIL2 = [EMAIL PROTECTED] ## it's the people who < (^),> WWW = http://www.******.org/ ## annoy them that do! / \ -- (****** = site not yet online) _______________________________________________ Bug-findutils mailing list [email protected] http://lists.gnu.org/mailman/listinfo/bug-findutils
