[Bug 968578] New: Rkhunter shows a "too many arguments" warning
http://bugzilla.opensuse.org/show_bug.cgi?id=968578 Bug ID: 968578 Summary: Rkhunter shows a "too many arguments" warning Classification: openSUSE Product: openSUSE Tumbleweed Version: 2015* Hardware: Other OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: Other Assignee: bnc-team-screening@forge.provo.novell.com Reporter: bjoernv@arcor.de QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- The Rkhunter daily cron-job emails start like this: /usr/bin/rkhunter: line 7439: [: too many arguments /usr/bin/rkhunter: line 7439: [: too many arguments Warning: The O/S name or version has changed since the last run: Old O/S value: openSUSE 20160222 (x86_64) New value: openSUSE 20160225 (x86_64) Because of the change(s) the file properties checks may give some false-positive results. You may need to re-run rkhunter with the '--propupd' option. The warning is produced in line 7439 of /usr/bin/rkhunter: if [ $PROG_VERS -lt $LATEST_VERS ]; then PROG_VERS is extracted from language files here: /var/lib/rkhunter/db/i18n/* The Turkish language file is detected as a binary file by grep. "sh -x /usr/bin/rkhunter --update" shows the problematic call: + '[' Binary file /var/lib/rkhunter/db/i18n/tr matches -lt 2014030201 ']' /usr/bin/rkhunter: line 7439: [: too many arguments A simplified "grep" call shows the problem: # grep Version /var/lib/rkhunter/db/i18n/tr Binary file /var/lib/rkhunter/db/i18n/tr matches The Grep option "--text" fixes the problem: # grep --text Version /var/lib/rkhunter/db/i18n/tr Version:2014030201 -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=968578 http://bugzilla.opensuse.org/show_bug.cgi?id=968578#c1 Bernhard Wiedemann <bwiedemann@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |CONFIRMED CC| |bwiedemann@suse.com, | |saigkill@opensuse.org Assignee|bnc-team-screening@forge.pr |Greg.Freemyer@gmail.com |ovo.novell.com | --- Comment #1 from Bernhard Wiedemann <bwiedemann@suse.com> --- filed upstream as https://sourceforge.net/p/rkhunter/bugs/145/ and proposing your fix for openSUSE in https://build.opensuse.org/request/show/362456 -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=968578 http://bugzilla.opensuse.org/show_bug.cgi?id=968578#c2 Greg Freemyer <Greg.Freemyer@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|CONFIRMED |IN_PROGRESS --- Comment #2 from Greg Freemyer <Greg.Freemyer@gmail.com> --- (In reply to Bernhard Wiedemann from comment #1)
filed upstream as https://sourceforge.net/p/rkhunter/bugs/145/
and proposing your fix for openSUSE in https://build.opensuse.org/request/show/362456
That SR was accepted and forwarded to factory: https://build.opensuse.org/request/show/362714 Does anyone know if Leap 42.1 or 13.2 are impacted by this bug? -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=968578 http://bugzilla.opensuse.org/show_bug.cgi?id=968578#c3 --- Comment #3 from Bernhard Wiedemann <bwiedemann@suse.com> --- Leap 42.1 and 13.2 are not affected. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=968578 http://bugzilla.opensuse.org/show_bug.cgi?id=968578#c4 --- Comment #4 from Björn Voigt <bjoernv@arcor.de> --- Yes, I can confirm, that Leap 42.1 and 13.2 are unaffected. The "Grep" version makes the difference. I tested with the original Grep version from Leap 42.1 and 13.2 on Tumbleweed. Tumbleweed: # grep --version grep (GNU grep) 2.22 [...] # grep Version /var/lib/rkhunter/db/i18n/tr Binary file /var/lib/rkhunter/db/i18n/tr matches Leap 42.1: # grep-from-42.1 --version grep (GNU grep) 2.16 # /tmp/grep Version /var/lib/rkhunter/db/i18n/tr Version:201403020 openSUSE 13.2: # grep-from-13.2 Version /var/lib/rkhunter/db/i18n/tr Version:2014030201 # grep-from-13.2 --version /tmp/grep-13.2 (GNU grep) 2.16 -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=968578 http://bugzilla.opensuse.org/show_bug.cgi?id=968578#c5 Greg Freemyer <Greg.Freemyer@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|IN_PROGRESS |RESOLVED Resolution|--- |FIXED --- Comment #5 from Greg Freemyer <Greg.Freemyer@gmail.com> --- The SR was accepted into factory. -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com