Package: ccze
Version: 0.2.1-1
Severity: normal
Tags: patch
The bug in all its glory:
dreamscape:~$ ccze -o nolookups < /var/log/syslog
Erreur de segmentation
The problem is related to glibc 2.3.5 as -o, -m & friends work fine on
another system running sid with glibc 2.3.2.
It seems that the parse_opt function expects argp_parse to update the optarg
global var. The latest glibc seem to have dropped that behaviour. Here's a
patch that works for me.
--- src/ccze.c.bak 2005-08-13 21:32:05.000000000 +0200
+++ src/ccze.c 2005-08-13 22:02:01.000000000 +0200
@@ -209,7 +209,7 @@
}
break;
case 'a':
- plugin = strtok (optarg, "=");
+ plugin = strtok (arg, "=");
value = strtok (NULL, "\n");
ccze_plugin_argv_set (plugin, value);
break;
@@ -249,7 +249,7 @@
ccze_config.remfac = 1;
break;
case 'm':
- subopts = optarg;
+ subopts = arg;
while (*subopts != '\0')
{
switch (getsubopt (&subopts, m_subopts, &value))
@@ -273,7 +273,7 @@
}
break;
case 'o':
- subopts = optarg;
+ subopts = arg;
while (*subopts != '\0')
{
switch (getsubopt (&subopts, o_subopts, &value))
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]