1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
|
Description: Fix for grepping binary files during updates
Author: Craig Small <csmall@debian.org>
Forwarded: no
Last-Update: 2015-08-21
--- a/files/rkhunter
+++ b/files/rkhunter
@@ -7416,7 +7416,7 @@ do_i18n_update() {
fi
if [ -s "${DB_PATH}/i18n/${LANGFILE}" ]; then
- PROG_VERS=`grep ${GREP_OPT} '^[Vv]ersion:[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]$' "${DB_PATH}/i18n/${LANGFILE}" 2>/dev/null | tail ${TAIL_OPT}1 | cut -d: -f2`
+ PROG_VERS=`grep ${GREP_OPT} -a '^[Vv]ersion:[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9]$' "${DB_PATH}/i18n/${LANGFILE}" 2>/dev/null | tail ${TAIL_OPT}1 | cut -d: -f2`
if [ -z "${PROG_VERS}" ]; then
PROG_VERS=0
|