summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorcperciva <cperciva@FreeBSD.org>2005-08-22 09:33:36 +0000
committercperciva <cperciva@FreeBSD.org>2005-08-22 09:33:36 +0000
commit2f763eca1dd73c160f5c4185a26ab5f68337194a (patch)
treede690c8edf38a4c4536eff96ca6f24f2c3067f17 /etc
parent491d2271d8d7eee4ec369543b2636b74af0cb458 (diff)
downloadFreeBSD-src-2f763eca1dd73c160f5c4185a26ab5f68337194a.zip
FreeBSD-src-2f763eca1dd73c160f5c4185a26ab5f68337194a.tar.gz
When looking for new lines in diff output, grep for '^[>+]' instead of
'^>', in order to catch both normal and unified diffs. Problem reported by: volker at vwsoft dot com via -stable MFC after: 3 days
Diffstat (limited to 'etc')
-rw-r--r--etc/periodic/security/security.functions2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/periodic/security/security.functions b/etc/periodic/security/security.functions
index c5aa3c3..f5b8dcd 100644
--- a/etc/periodic/security/security.functions
+++ b/etc/periodic/security/security.functions
@@ -43,7 +43,7 @@ check_diff() {
rc=0
if [ "$1" = "new_only" ]; then
shift
- filter="grep '^>'"
+ filter="grep '^[>+]'"
else
filter="cat"
fi
OpenPOWER on IntegriCloud