diff options
author | Patrick J Volkerding <volkerdi@slackware.com> | 2024-02-21 20:00:08 +0000 |
---|---|---|
committer | Eric Hameleers <alien@slackware.com> | 2024-02-22 13:39:58 +0100 |
commit | 14f2469b121428fbb670e743e5ae23c7d5771f7f (patch) | |
tree | dd08f5f637c1db09002492a03fde856e0c7b010e /patches/source/dcron/doinst.sh | |
parent | bdfa16c82f02acbe3a6ce4b13e2adf685b856454 (diff) | |
download | current-14f2469b121428fbb670e743e5ae23c7d5771f7f.tar.gz current-14f2469b121428fbb670e743e5ae23c7d5771f7f.tar.xz |
Wed Feb 21 20:00:08 UTC 202420240221200008_15.0
patches/packages/dcron-4.5-x86_64-12_slack15.0.txz: Rebuilt.
This is a bugfix release.
run-parts: skip *.orig files. Thanks to metaed.
patches/packages/mozilla-thunderbird-115.8.0-x86_64-1_slack15.0.txz: Upgraded.
This release contains security fixes and improvements.
For more information, see:
https://www.mozilla.org/en-US/thunderbird/115.8.0/releasenotes/
https://www.mozilla.org/en-US/security/advisories/mfsa2024-07/
https://www.cve.org/CVERecord?id=CVE-2024-1546
https://www.cve.org/CVERecord?id=CVE-2024-1547
https://www.cve.org/CVERecord?id=CVE-2024-1548
https://www.cve.org/CVERecord?id=CVE-2024-1549
https://www.cve.org/CVERecord?id=CVE-2024-1550
https://www.cve.org/CVERecord?id=CVE-2024-1551
https://www.cve.org/CVERecord?id=CVE-2024-1552
https://www.cve.org/CVERecord?id=CVE-2024-1553
(* Security fix *)
Diffstat (limited to 'patches/source/dcron/doinst.sh')
-rw-r--r-- | patches/source/dcron/doinst.sh | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/patches/source/dcron/doinst.sh b/patches/source/dcron/doinst.sh new file mode 100644 index 000000000..0d5f1ee87 --- /dev/null +++ b/patches/source/dcron/doinst.sh @@ -0,0 +1,30 @@ +config() { + for infile in $1; do + NEW="$infile" + OLD="$(dirname $NEW)/$(basename $NEW .new)" + # If there's no config file by that name, mv it over: + if [ ! -r $OLD ]; then + mv $NEW $OLD + elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then + # toss the redundant copy + rm $NEW + fi + # Otherwise, we leave the .new copy for the admin to consider... + done +} + +preserve_perms() { + NEW="$1" + OLD="$(dirname $NEW)/$(basename $NEW .new)" + if [ -e $OLD ]; then + cp -a $OLD ${NEW}.incoming + cat $NEW > ${NEW}.incoming + mv ${NEW}.incoming $NEW + fi + config $NEW +} + +preserve_perms etc/rc.d/rc.crond.new +config etc/default/crond.new +config var/spool/cron/crontabs/root.new +rm -f var/spool/cron/crontabs/root.new |