summaryrefslogtreecommitdiff
path: root/system/tiger/patches/tiger-aide.patch
blob: 0d8c359698521c7957d0abb17f04eb6c47bd30a4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
From c0815d8bd760a3b5b62d6caa452b1ae1430040f9 Mon Sep 17 00:00:00 2001
From: pyllyukko <pyllyukko@maimed.org>
Date: Sat, 6 Oct 2012 23:18:03 +0300
Subject: Fixed the aide_run script to support Aide 0.15.1 reports

---
 scripts/aide_run |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/scripts/aide_run b/scripts/aide_run
index 363ef10..b776589 100755
--- a/scripts/aide_run
+++ b/scripts/aide_run
@@ -152,11 +152,11 @@ $AIDE --check --config=${AIDE_CFG} --report=stdout ${AIDE_DB} \
 # i.e. check $? and determine what happened
 
 # Check temporary report for the changes signal:
-$GREP ${AIDE_RPT} -qe "AIDE found differences"
+$GREP ${AIDE_RPT} -qe "AIDE \([0-9.]\+ \)\?found differences"
 
 case "$?" in
 0)	# Summary
-	AIDE_SUMMARY=`$GREP ${AIDE_RPT} -e "^Total number"`
+	AIDE_SUMMARY=`$GREP ${AIDE_RPT} -e "^ *Total number"`
 	message INFO aide003i "" "Summary: ${AIDE_SUMMARY}"
 	# Differentiate between added, changed and removed files
 	for status in changed removed detected; do
-- 
1.7.4.4