aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Osipov <michaelo@FreeBSD.org>2024-03-14 16:39:47 +0000
committerMichael Osipov <michaelo@FreeBSD.org>2024-03-18 10:01:59 +0000
commit85c3ef77cc9f7dbf8500c3d16c82d24eb06bfa81 (patch)
treeac8278da9b23a2caeb428c183cc7e6c7e181dca1
parent78b6117dac99c80fe618979fef4ef322b97415fa (diff)
downloadsrc-85c3ef77cc9f7dbf8500c3d16c82d24eb06bfa81.tar.gz
src-85c3ef77cc9f7dbf8500c3d16c82d24eb06bfa81.zip
freebsd-update: mark "cron" as fetched as "fetch" itself
The change in 33bd05c3187d7b49c80cf1b0132b405c105d0833 was incomplete because it did not mark "cron" as ISFETCHED=1 although it performs the same operations as "install", but less output and does not perform a hard exit. Mark result as such and make "install" know that updates have been fetched. PR: 277699 Approved by: jrm (mentor), emaste, cperciva MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D44356
-rw-r--r--usr.sbin/freebsd-update/freebsd-update.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/usr.sbin/freebsd-update/freebsd-update.sh b/usr.sbin/freebsd-update/freebsd-update.sh
index a3e56127f9eb..88a0a4439e50 100644
--- a/usr.sbin/freebsd-update/freebsd-update.sh
+++ b/usr.sbin/freebsd-update/freebsd-update.sh
@@ -3457,6 +3457,7 @@ cmd_cron () {
[ ${VERBOSELEVEL} = "debug" ]; then
mail -s "`hostname` security updates" ${MAILTO} < ${TMPFILE}
fi
+ ISFETCHED=1
rm ${TMPFILE}
}