Rkhunter 1.3.0 on OpenBSD 3.9 and later does not update itself properly due to the OpenBSD version of grep handling certain files as binary files. This patch corrects this issue in rkhunter so it will work properly on OpenBSD. The patch changes the relative part of the code so that if OpenBSD is the detected operating system rkhunter will use "strings" on the file and pipe the output to grep instead of just using grep.
I've tested this on a few installations of 3.9, 4.0, and 4.1 and it works. I submitted this patch to Michael a while back and he told me to come here with it instead, so here it is.
Log in to post a comment.