diff options
author | cperciva <cperciva@FreeBSD.org> | 2005-08-22 09:33:36 +0000 |
---|---|---|
committer | cperciva <cperciva@FreeBSD.org> | 2005-08-22 09:33:36 +0000 |
commit | 2f763eca1dd73c160f5c4185a26ab5f68337194a (patch) | |
tree | de690c8edf38a4c4536eff96ca6f24f2c3067f17 /etc | |
parent | 491d2271d8d7eee4ec369543b2636b74af0cb458 (diff) | |
download | FreeBSD-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.functions | 2 |
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 |