From nobody Thu Mar 16 11:06:25 2023 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4PckwK26xMz3yj1w for ; Thu, 16 Mar 2023 11:06:25 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4PckwK06sGz4FJR for ; Thu, 16 Mar 2023 11:06:25 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1678964785; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=agcTAqop+QyPZ2V1qCLg7V+8xq8/qHapLdeBf6TX3lY=; b=XjRebZn+GGi2g20hSeI+xO/H+SVWyw+No13KHolU40Y+mgCMBp11f/itgZYT6OCkvWmc7C yR6IrSdkWcaz+IfW0dx7+u/Fn/tclwlhP2ueiPrgwJ3BUjXLZX/t4bJRzeK/tR4R2ff3aE B+ssDfGrXr/sjtI+YnjYNiHG0bEL2YdonLVyqKdPuEdtthpCUzyJXy1if+bGPGz1wBh7N2 HpRZ90+r9P9MSDVfSLUssxUD2pxMFRwW8NnHradbinbpNEokLFIkPe5zMfwVyR9dQS1P6w FGifV79APEnJ4BA+QVXb+or7Nvrafhc+V0Gt0cJfP+dK55/Th7Gk6m1Acf/k3g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1678964785; a=rsa-sha256; cv=none; b=fMhpzC7URFUe8F6sA3qaFzi2s8EvSiqKscbVHo8rWPXDXr/E/ikXKikTFFNi8DncEpnnXj GJYeoKNSPbePzKDfGs7uW1jZxzlhdt5g4mB4EtL/fIy0u2b57/a6QMgadmnCOlTEiqhuS9 I6ySjfeAWUA5NAwmwxF/5ml/e4j6B+7sLEajkmDDkMOesPkvV2F63lmahz8SRoTh8ZCtx0 YP9PIT0LRMKK0S4k4MHLphRnoEIwJsfhRi/uglz30XSqr7MJBlnOE2Ss+f05xq5iji+xOM fAqMyPd60szb8eFmqr0rWVySCIpGVvBpgXBjO0A3nnj1Qe5sPoeGuGXExxRbLQ== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4PckwJ6GW7zgLx for ; Thu, 16 Mar 2023 11:06:24 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 32GB6Otj096334 for ; Thu, 16 Mar 2023 11:06:24 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 32GB6OK5096333 for bugs@FreeBSD.org; Thu, 16 Mar 2023 11:06:24 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 270266] Make periodic(8) diff output as small is possible Date: Thu, 16 Mar 2023 11:06:25 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: conf X-Bugzilla-Version: 12.4-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: michael.osipov@siemens.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N 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.=