[pcre-dev] [Bug 2794] pcre2grep "-r" option needs to detect …

Top Page
Delete this message
Author: admin
Date:  
To: pcre-dev
Old-Topics: [pcre-dev] [Bug 2794] New: pcre2grep directory recursion has trouble with certain symlinks on macOS
Subject: [pcre-dev] [Bug 2794] pcre2grep "-r" option needs to detect endless symlink recursion
https://bugs.exim.org/show_bug.cgi?id=2794

--- Comment #6 from Thomas Tempelmann <tempelmann@???> ---
LOL!

I forgot that you don't just support Linux/Unix but all kinds of OS, where fts
is not available.

Though, the cleanest solution might be to rewrite a fts-like wrapper, maybe
something that takes a callback function (which handles a single file), and
then you use fts on *nix and your regular recursive approach on others. That
way, the code for the actual file handling remains untouched when you want to
implement more specialized tree traveral routines.

What do you think? Does that fit? I might offer to update the code myself - I'm
currently a bit enthusiastic :)

--
You are receiving this mail because:
You are on the CC list for the bug.