Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 16 Mar 2023 11:06:25 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 270266] Make periodic(8) diff output as small is possible
Message-ID:  <bug-270266-227@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D270266

            Bug ID: 270266
           Summary: Make periodic(8) diff output as small is possible
           Product: Base System
           Version: 12.4-RELEASE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: conf
          Assignee: bugs@FreeBSD.org
          Reporter: michael.osipov@siemens.com

Some periodic scripts use diff(1) to show differences:
=3D=3D=3D=3D=3D=3D=3D
root@deblndw013x3j:/etc/periodic
# grep -r "diff " /etc/periodic
/etc/periodic/daily/221.backup-gpart:                   [ -n "$show_diff" ]=
 &&
diff "${file}.bak" "${file}.tmp"
/etc/periodic/daily/210.backup-aliases:         diff -u $bak/aliases.bak
/etc/mail/aliases
/etc/periodic/daily/200.backup-passwd:          diff -uI '^#'
$bak/master.passwd.bak /etc/master.passwd |\
/etc/periodic/daily/200.backup-passwd:          diff -u $bak/group.bak
/etc/group
/etc/periodic/daily/222.backup-gmirror:                 [ -n "$show_diff" ]=
 &&
diff "${file}.bak" "${file}.tmp"
/etc/periodic/daily/223.backup-zfs:                     [ -n "$show_diff" ]=
 &&
diff "${file}.bak" "${file}.tmp"
/etc/periodic/security/200.chkmounts:     check_diff mount - "${host} chang=
es
in mounted filesystems:"
/etc/periodic/security/510.ipfdenied:     check_diff new_only ipf ${TMP}
"${host} ipf denied packets:"
/etc/periodic/security/700.kernelmsg:       check_diff new_only dmesg -
"${host} kernel log messages:"
/etc/periodic/security/100.chksetuid:   check_diff setuid - "${host} setuid
diffs:"
/etc/periodic/security/610.ipf6denied:   check_diff new_only ipf6 ${TMP}
"${host} ipf6 denied packets:"
/etc/periodic/security/security.functions:    diff
${security_status_diff_flags} ${LOG}/${label}.today \
/etc/periodic/security/520.pfdenied:            check_diff new_only pf ${TM=
P}
"${host} pf denied packets:"
/etc/periodic/security/500.ipfwdenied:    check_diff new_only ipfw ${TMP}
"${host} ipfw denied packets:"
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

To reduce email output it should use "-U 0" by default to omit unaffected l=
ines
in the diffed files.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-270266-227>