Tcl Library Source Code

View Ticket
Bounty program for improvements to Tcl and certain Tcl packages.
Ticket UUID: 647974
Title: find has problems recursing a metakit fs
Type: Bug Version: None
Submitter: andreas_kupries Created on: 2002-12-03 19:02:14
Subsystem: fileutil Assigned To: andreas_kupries
Priority: 7 High Severity:
Status: Closed Last Modified: 2003-07-05 11:18:24
Resolution: Fixed Closed By: andreas_kupries
    Closed on: 2003-07-05 04:18:24
The command 'fileutil::find' has problems when recursing 
a directory structure coming from a metakit filesystem 
(fr example starkit). It reports the first file per directory 
(and the directory), but nothing else.

I believe the reason for this is that the metakit FS 
returns bogus i-node information to [file stat]. And 'find' 
uses 'file stat' to get i-node information to stop the 
recursion for already visited files and directories. This 
part of its handling of symbolic links, to break circular 
link chain.

A bug will be entered a tclvfs too, refering to this report.
User Comments: andreas_kupries added on 2003-07-05 11:18:24:
Logged In: YES 

Committed a patch which takes care of the problem. for
non-native filesystems we simply do not look at device/inode
anymore to prevent circles. We simply assume that the
concrete vFS do not support links.
For now this is true.