https://bz.apache.org/bugzilla/show_bug.cgi?id=62849

--- Comment #1 from Michael Barker <mike...@gmail.com> ---
Created attachment 36206
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=36206&action=edit
Patch to handle file system loop in directory scanner.

This patch will skip over directories that create a file system loop.  It does
this by checking if the canonical path of a child directory is a prefix of the
canonical path of the parent.

There is a test included.

The test also highlighted that the delete task will follow symlinks, which can
also fall afoul of file system loops, so I've changed the delete task to only
follow directories that are not symlinks and just delete the symlink itself
instead.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to