Menu

#138 rkhunter --update broken on non-English locales

main
closed-fixed
nobody
None
5
2015-11-30
2015-08-03
No

Here''s the bug that was reported on the Debian tracker:

$ rkhunter --update
[ Rootkit Hunter version 1.4.2 ]

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 ]
  Checking file i18n/cn                                       [ No update ]
  Checking file i18n/de                                       [ No update ]
  Checking file i18n/en                                       [ No update ]
/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 ]

The work-around is to explicitly set the C locale when doing updates:

LANG=C rkhunter --update

I can reproduce the above when setting my locale as fr_CA.

Discussion

  • Francois Marier

    Francois Marier - 2015-08-30

    Here's the patch I applied to the Debian package to fix this problem.

     
  • John Horne

    John Horne - 2015-11-30
    • status: open --> closed-fixed
     
  • John Horne

    John Horne - 2015-11-30

    Already fixed in CVS.

     

Log in to post a comment.