file:list($path, true()) can produce infinite loops on some filesystems

Bug #1023862 reported by Dennis Knochenwefel
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Zorba
Fix Released
High
Paul J. Lucas

Bug Description

in fs_util the next() function makes use of ::readdir and in particular d_type which is not supported by all file system types (cf readdir man page).

If d_type is not supported it will be set to DT_UNKNOWN also for the file system entries "." and "..". Consequently, these entries are not skipped and file:list will recursively infinitely list entries:

/.
/./.
/././.
/./././.
/././././.
/./././././.

.. etc

Related branches

Changed in zorba:
status: New → In Progress
Changed in zorba:
assignee: Dennis Knochenwefel (dennis-knochenwefel) → Paul J. Lucas (paul-lucas)
Changed in zorba:
status: In Progress → Fix Committed
Changed in zorba:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.