Bug#791486: /usr/bin/rkhunter: 7439: [: Binary: unexpected operator
- Subject: Bug#791486: /usr/bin/rkhunter: 7439: [: Binary: unexpected operator
- From: francois@debian.org (Francois Marier)
- Date: Mon, 3 Aug 2015 16:06:43 -0700
- Message-id: <[🔎] 20150803230643.GE23857@akranes.dyndns.org>
- In-reply-to: <CAD=6cZrnQDossg95pLwGt+C=EgcNHP74L_5h_QTXTnjFcYFMjg@mail.gmail.com>
- References: <CAD=6cZrnQDossg95pLwGt+C=EgcNHP74L_5h_QTXTnjFcYFMjg@mail.gmail.com>
On 2015-07-05 at 16:52:04, Pedro Beja wrote:
> doing an update I get the following error line:
>
> $ sudo rkhunter --update
[snip]
> /usr/bin/rkhunter: 7439: [: Binary: unexpected operator
> Checking file i18n/tr [ No update ]
> Checking file i18n/tr.utf8 [ No update ]
> /usr/bin/rkhunter: 7439: [: Binary: unexpected operator
> Checking file i18n/zh [ No update ]
> Checking file i18n/zh.utf8 [ No update ]
This seems to happen only on non-English locales. Try this (as root):
LANG=C rkhunter --update
If I output the variables from line 7439 on a fr_CA locale, I get this:
Checking rkhunter data files...
Checking file mirrors.dat [ No update ]
Checking file programs_bad.dat [ No update ]
Checking file backdoorports.dat [ No update ]
Checking file suspscan.dat [ No update ]
PROG_VERS=2009091601; LATEST_VERS=2009091601
Checking file i18n/cn [ No update ]
PROG_VERS=2014010301; LATEST_VERS=2014010301
Checking file i18n/de [ No update ]
PROG_VERS=2013112401; LATEST_VERS=2013112401
Checking file i18n/en [ No update ]
PROG_VERS=Fichier binaire /var/lib/rkhunter/db/i18n/tr correspondant; LATEST_VERS=2014030201
/usr/bin/rkhunter: 7440: [: Fichier: unexpected operator
Checking file i18n/tr [ No update ]
PROG_VERS=2014030201; LATEST_VERS=2014030201
Checking file i18n/tr.utf8 [ No update ]
PROG_VERS=Fichier binaire /var/lib/rkhunter/db/i18n/zh correspondant; LATEST_VERS=2009091601
/usr/bin/rkhunter: 7440: [: Fichier: unexpected operator
Checking file i18n/zh [ No update ]
PROG_VERS=2009091601; LATEST_VERS=2009091601
Checking file i18n/zh.utf8 [ No update ]
The attached patch to the cronjob in /etc is a work-around until this is
fixed upstream.
Francois
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rkhunter-weeklycron.patch
Type: text/x-diff
Size: 894 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/forensics-devel/attachments/20150803/eae3c0df/attachment-0001.patch>
Reply to: