File: 30_fix-lang-update-grep.diff

package info (click to toggle)
rkhunter 1.4.6-11
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 5,132 kB
  • sloc: sh: 14,367; perl: 120; makefile: 6
file content (16 lines) | stat: -rw-r--r-- 690 bytes parent folder | download | duplicates (5)
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