zorba-coders team mailing list archive
-
zorba-coders team
-
Mailing list archive
-
Message #12225
[Bug 1023862] Re: file:list($path, true()) can produce infinite loops on some filesystems
** Changed in: zorba
Assignee: Dennis Knochenwefel (dennis-knochenwefel) => Paul J. Lucas (paul-lucas)
--
You received this bug notification because you are a member of Zorba
Coders, which is the registrant for Zorba.
https://bugs.launchpad.net/bugs/1023862
Title:
file:list($path, true()) can produce infinite loops on some
filesystems
Status in Zorba - The XQuery Processor:
In Progress
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
To manage notifications about this bug go to:
https://bugs.launchpad.net/zorba/+bug/1023862/+subscriptions
References