diff options
author | marius <marius@FreeBSD.org> | 2016-01-29 01:54:32 +0000 |
---|---|---|
committer | marius <marius@FreeBSD.org> | 2016-01-29 01:54:32 +0000 |
commit | 46cf14d7bf24ebbb83d9692b2acabdb324575f1b (patch) | |
tree | bb1c7a677ef4464dd8095ef0f4abbe4093245443 /etc/periodic | |
parent | 694bb1bf14f15dfce8a60d007edab8fc551bb080 (diff) | |
download | FreeBSD-src-46cf14d7bf24ebbb83d9692b2acabdb324575f1b.zip FreeBSD-src-46cf14d7bf24ebbb83d9692b2acabdb324575f1b.tar.gz |
Use '^[>+][^+]' instead of '^[>+]' with grep(1) when filtering the
diff(1) output between two files in "new_only"-mode. Otherwise,
with the default of using unified format a remnant of the header
in the output is the result. This is especially irritating when
the two files differ but the second one is empty, amounting to the
vestige of the header being the only readout.
Reported by: Stefan Haemmerl
MFC after: 3 days
Diffstat (limited to 'etc/periodic')
-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 bc2bcba..c2c757a 100644 --- a/etc/periodic/security/security.functions +++ b/etc/periodic/security/security.functions @@ -51,7 +51,7 @@ check_diff() { rc=0 if [ "$1" = "new_only" ]; then shift - filter="grep '^[>+]'" + filter="grep '^[>+][^+]'" else filter="cat" fi |