Karl Berry wrote:
> grep 2.6 and 2.6.1, compiled from original source (on CentOS 5.4).
> grep -r foo . (all args I tried did the same) gets an immediate seg fault.
> Compiling with gcc 4.4.3 (though I doubt it matters), also installed
> from original source.
>
> Running under gdb shows that path is NULL upon entry to isdir1 in
> lib/savedir.c. The diff below avoids the seg fault, and I haven't found
> any other bad behavior, but I'm sure it's not what you will want to
> apply ...
Hi Karl,
Thanks for reporting that.
Can you make it fail with only -r? So far I've had to use also
--include or one of the --exclude* options.
If so, please provide details so I can update this
patch before pushing it:
http://thread.gmane.org/gmane.comp.gnu.grep.bugs/2765/focus=2780