wc issue is fixed.
Still having issue with SUSPSCAN_DIRS here is a chunk from a debug
+ SUSPSCAN_DFLT_TMP=0
+ SUSPSCAN_DFLT_DIRS=0
+ SUSPSCAN_DFLT_THRESH=0
+ SUSPSCAN_DFLT_MAXSIZE=0
+ + get_option space-list SUSPSCAN_DIRS
+ OPTMULTI=space-list
+ OPTNAME=SUSPSCAN_DIRS
+ ERRCODE=0
+ [ -z space-list -o -z SUSPSCAN_DIRS ]
+ + grep -h ^SUSPSCAN_DIRS= /opt/rkhunter/etc/rkhunter.conf
RKHTMPVAR2=SUSPSCAN_DIRS=/opt/rkhunter/tmp
+ [ -z SUSPSCAN_DIRS=/opt/rkhunter/tmp ]
+ + print SUSPSCAN_DIRS=/opt/rkhunter/tmp
+ tail -n 1
+ sed -e s/SUSPSCAN_DIRS=//
RKHTMPVAR3=/opt/rkhunter/tmp
+ [ -z /opt/rkhunter/tmp -o /opt/rkhunter/tmp = "" -o /opt/rkhunter/tmp =
'' ]
+ + print SUSPSCAN_DIRS=/opt/rkhunter/tmp
+ sed -e s/SUSPSCAN_DIRS=//
OPTVAR=/opt/rkhunter/tmp
+ print /opt/rkhunter/tmp
+ grep ^-
+ [ -n ]
+ [ space-list = space-list ]
+ + print /opt/rkhunter/tmp
+ tr -s
OPTVAR=/opt/rkhunter/tmp
+ + print /opt/rkhunter/tmp
+ sed -e s/^ *"* *//; s/ *"* *$//
+ sed -e s/^ *'* *//; s/ *'* *$//
OPTVAR=/opt/rkhunter/tmp
+ [ -n /opt/rkhunter/tmp ]
+ + print /opt/rkhunter/tmp
+ awk BEGIN { RS="" }; END { print }
OPTVAR=
+ print
+ return 0
SUSPSCAN_DIRS=
+ [ 0 -eq 0 ]
+ [ -n ]
+ SUSPSCAN_DFLT_DIRS=1
+ SUSPSCAN_DIRS=/tmp /var/tmp
+ + get_option single SUSPSCAN_TEMP
+ OPTMULTI=single
+ OPTNAME=SUSPSCAN_TEMP
+ ERRCODE=0
+ [ -z single -o -z SUSPSCAN_TEMP ]
Looks like it has to do with the following line in rkhunter function
get_option
OPTVAR=`echo "${OPTVAR} " | awk 'BEGIN { RS="" }; END { print }'`
Can you provide some more detail on what this line is doing? It seems to
just return the list in Linux, but doesn't work at all in AIX.
root@aix: /opt/rkhunter/bin >echo "/opt/rkhunter/tmp " | awk 'BEGIN{
RS=""}; END { print }'
root@aix: /opt/rkhunter/bin >
joshpe@linux $echo "/opt/rkhunter/tmp " | awk 'BEGIN{ RS=""}; END { print }'
/opt/rkhunter/tmp
joshpe@linux $
Thanks again for the help.
Josh
On Wed, Dec 18, 2013 at 10:12 PM, Josh Peacock <josh.peac...@gmail.com>wrote:
> I found another issue when running the latest rkhunter from cvs.
>
> On line 11485
>
> RKH_CC=`echo "${RKHTMPVAR}" | cut -d: -f2`
>
> Changed to this and its working.
>
> RKH_CC=`echo "${RKHTMPVAR}" | cut -d: -f2 | awk '{print $1}'`
>
>
> It is actually line 11486 that is creating the issue. AIX expr doesn't
> like the padded spaces before the number in field 2 of ${RKHTMPVAR}.
>
> Another one of those things I have ran into only on AIX when using expr.
> Otherwise your other fix and new additions seem to work ok with some tweaks
> to the config file.
>
> Thanks,
>
> Josh
>
------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT
organizations don't have a clear picture of how application performance
affects their revenue. With AppDynamics, you get 100% visibility into your
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
_______________________________________________
Rkhunter-users mailing list
Rkhunter-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rkhunter-users