From d7883da19f09c7541201426ed9737bae992bd6ff Mon Sep 17 00:00:00 2001 From: Colin Percival Date: Mon, 22 Aug 2005 09:33:36 +0000 Subject: [PATCH] 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 --- etc/periodic/security/security.functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etc/periodic/security/security.functions b/etc/periodic/security/security.functions index c5aa3c39be44..f5b8dcd203d4 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