Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 454538 - app-admin/logcheck-1.3.15 - logtail2 does not parse double spaces correctly
Summary: app-admin/logcheck-1.3.15 - logtail2 does not parse double spaces correctly
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Paweł Hajdan, Jr. (RETIRED)
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2013-01-29 13:41 UTC by Dirk Tilger
Modified: 2013-02-10 10:41 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
epatch ready patch to rectify the problem (logcheck-1.3.15-logtail-t.patch,768 bytes, text/plain)
2013-01-29 13:41 UTC, Dirk Tilger
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dirk Tilger 2013-01-29 13:41:09 UTC
Created attachment 337228 [details]
epatch ready patch to rectify the problem

user@host ~ $ sudo -g logcheck /usr/sbin/logcheck -d -o
D: [1359462949] Turning debug mode on
D: [1359462949] Sourcing - /etc/logcheck/logcheck.conf
D: [1359462949] Setting MAILOUT to 1
D: [1359462949] Finished getopts c:dhH:l:L:m:opr:RsS:tTuvw
D: [1359462950] Trying to get lockfile: /var/lock/logcheck/logcheck.lock
D: [1359462950] Running lockfile-touch /var/lock/logcheck/logcheck.lock
D: [1359462950] cleanrules: /etc/logcheck/cracking.d/kernel
[...]
D: [1359462951] cleanrules: /etc/logcheck/ignore.d.paranoid/usb
D: [1359462951] logoutput called with file: /var/log/syslog
D: [1359462951] Running /usr/sbin/logtail2 on /var/log/syslog
D: [1359462951] /usr/sbin/logtail2  -f "/var/log/syslog" -o "/var/lib/logcheck/offset.var.log.syslog" 
D: [1359462952] error: Killing lockfile-touch - 12599
D: [1359462952] Error: Could not run logtail or save output
Error: Could not run logtail or save output.
D: [1359462952] cleanup: Removing - /tmp/logcheck.Q4ep5g

I believe the reason for this is this commit:
http://anonscm.debian.org/gitweb/?p=logcheck/logcheck.git;a=commitdiff;h=589cf7c64eebec3016fdf2f3aee0b56c8b52edd9

It fixes an issue where logtail2 is not parsing the parameters correctly if there is a double space.
Comment 1 Dirk Tilger 2013-01-29 13:45:10 UTC
Here's a fix with ebuild:
https://github.com/Miriup/dirks-overlay/tree/before-efreet/app-admin/logcheck
Comment 2 Paweł Hajdan, Jr. (RETIRED) gentoo-dev 2013-02-10 10:41:47 UTC
Please report this upstream.