[pcre-dev] [Bug 2794] pcre2grep directory recursion has trou…

Página superior
Eliminar este mensaje
Autor: admin
Fecha:  
A: pcre-dev
Asunto: [pcre-dev] [Bug 2794] pcre2grep directory recursion has trouble with certain symlinks on macOS
https://bugs.exim.org/show_bug.cgi?id=2794

--- Comment #2 from Thomas Tempelmann <tempelmann@???> ---
I investigated this.

Turns out it's rather simple, and probably easy to reproduce:

It has nothing to do with the "z:" name.

Instead, it's about a symlink pointing back to its own parent dir, causing an
endless recursion that way.

Now, what's the verdict of dealing with these?

I mean, there are a lot of cmdline tools on Unix and Linux that perform
recursive directory traversion. They all should be able to deal with this,
shouldn't they? And some apparently do. I wonder if that's those that use a
special traversal function which would handle this case (for macOS/BSD, there's
`fts_open`, for example?

If you traverse "by hand", you'll have to look at the symlink and determine
whether it leads to a recursion, right?

What's your take on this?

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