FreeBSD Bugzilla – Attachment 231429 Details for
Bug 261555
410.pkg-audit: suggested patch to improve expiry by handling anticongestion delay better
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
suggested patch to make expiry handle anticongestion delay better
410.pkg-audit.patch (text/plain), 832 bytes, created by
wbe
on 2022-01-29 15:23:38 UTC
(
hide
)
Description:
suggested patch to make expiry handle anticongestion delay better
Filename:
MIME Type:
Creator:
wbe
Created:
2022-01-29 15:23:38 UTC
Size:
832 bytes
patch
obsolete
>--- /usr/local/etc/periodic/security/410.pkg-audit 2021-11-12 20:14:22.000000000 -0500 >+++ 410.pkg-audit 2022-01-17 16:12:20.947130000 -0500 >@@ -67,10 +67,11 @@ > > then=`stat -f '%m' "${basedir}${auditfile}" 2> /dev/null` || rc=3 > now=`date +%s` || rc=3 >- # Add 10 minutes of padding since the check is in seconds. >+ # For expiry to mean "every N days", round up by anticongestion delay. >+ # Also allow an extra 120 seconds (arbitrary) for processing delay. > if [ $rc -ne 0 -o \ > $(( 86400 \* "${security_status_pkgaudit_expiry}" )) \ >- -le $(( ${now} - ${then} + 600 )) ]; then >+ -le $(( ${now} - ${then} + ${anticongestion_sleeptime} + 120 )) ]; then > # When non-interactive, sleep to reduce congestion on mirrors > anticongestion > ${pkgcmd} ${pkgargs} audit -F $q || { rc=$?; [ $rc -lt 3 ] && rc=3; }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 261555
: 231429