[Rkhunter-users] -eq: unary operator expected errors in 1.3.0
Brought to you by:
dogsbody
From: Steve Z. <st...@gm...> - 2008-02-21 00:00:09
|
I'm receiving the following errors when I run rkhunter: Checking application versions... Checking version of GnuPG [ OK ] Checking version of Bind DNS [ OK ] Checking version of OpenSSL [ OK ] /usr/bin/rkhunter: line 10015: [: -eq: unary operator expected /usr/bin/rkhunter: line 10018: [: -eq: unary operator expected Checking version of PHP [ OK ] Checking version of 0 [ Skipped ] Checking version of Procmail MTA [ OK ] Checking version of ProFTPd [ OK ] Checking version of OpenSSH [ OK ] I've seen a couple of other similar issues reported and in most cases the submitters have been asked to run 'rkhunter --debug --enable apps'. The pertinent information seems to be: + APPLICATION=php ++ echo php%PHP%Warning: ++ cut -d% -f2 + APPLICATION_DESC=PHP ++ echo php%PHP%Warning: ++ cut -d% -f3 + VERSION=Warning: + '[' -z Warning: ']' + '[' Warning: = -1 ']' ++ echo php%PHP%Warning: ++ cut -d% -f4 + ISBAD= + '[' -eq -1 ']' /usr/bin/rkhunter: line 10015: [: -eq: unary operator expected + '[' -eq 1 ']' /usr/bin/rkhunter: line 10018: [: -eq: unary operator expected + display --to SCREEN+LOG --type PLAIN --result OK --color GREEN --log-indent 2 --screen-indent 4 APPS_CHECK PHP Any suggestions for what do to to fix this? I can send the entire log file if that will help - just let me know who to send it to. Thanks, -Steve |