Package: grep-dctrl
Version: 2.6.7
Severity: normal
Tags: patch
grep-dctrl segfaults when the -l options is passed. It does seem linked to a
typo in the file
grep-dctrl.c. Patch is attached that does the trick.
Thanks for considering this report
Vincent Fourmond
-- System Information:
Debian Release: testing/unstable
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.14
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) (ignored: LC_ALL set to C)
Versions of packages grep-dctrl depends on:
ii libc6 2.3.5-8.1 GNU C Library: Shared libraries an
grep-dctrl recommends no packages.
-- no debconf information
diff -Naur grep-dctrl-2.6.7.old/grep-dctrl.c grep-dctrl-2.6.7/grep-dctrl.c
--- grep-dctrl-2.6.7.old/grep-dctrl.c 2005-06-08 18:31:24.000000000 +0200
+++ grep-dctrl-2.6.7/grep-dctrl.c 2005-12-19 23:44:39.000000000 +0100
@@ -404,10 +404,10 @@
}
break;
case 'l': {
- int ll = str2loglevel(optarg);
+ int ll = str2loglevel(arg);
if (ll < 0)
{
- message(L_FATAL, _("no such log level"), optarg);
+ message(L_FATAL, _("no such log level"), arg);
fail();
}
set_loglevel(ll);