Package: grep Version: 2.11-1 Tags: patch This version of grep introduces a segfault when run with a combination of -r, --exclude-dir=X and no file operands, see http://savannah.gnu.org/bugs/?35915:
,---- | $ unset GREP_OPTIONS; grep -r --exclude-dir=X . | segmentation fault `---- Patch follows, taken from http://git.savannah.gnu.org/cgit/grep.git/diff/?id=12c957f786b12a4dd116f9c40a715d671d17fa16: --8<---------------cut here---------------start------------->8--- diff --git a/src/main.c b/src/main.c index 2f6c761..f4f1235 100644 --- a/src/main.c +++ b/src/main.c @@ -1361,7 +1361,7 @@ grepdir (char const *dir, struct stats const *stats) struct stats const *ancestor; char *name_space; int status = 1; - if (excluded_directory_patterns + if (dir && excluded_directory_patterns && excluded_file_name (excluded_directory_patterns, dir)) return 1; --8<---------------cut here---------------end--------------->8--- -- System Information: Debian Release: wheezy/sid APT prefers unstable APT policy: (500, 'unstable'), (101, 'experimental') Architecture: i386 (x86_64) Kernel: Linux 3.4.0-rc2-nouveau (SMP w/2 CPU cores) Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages grep depends on: ii dpkg 1.16.2 ii install-info 4.13a.dfsg.1-9 ii libc6 2.13-27 grep recommends no packages. Versions of packages grep suggests: ii libpcre3 1:8.30-4 -- no debconf information -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org