diff options
author | Patrick J Volkerding <volkerdi@slackware.com> | 2022-05-26 18:27:32 +0000 |
---|---|---|
committer | Eric Hameleers <alien@slackware.com> | 2022-05-27 13:30:00 +0200 |
commit | 81f2355530c9171fa695b7018e7fd0445d90b77d (patch) | |
tree | 548930a0b787a142c24f8a074e574bc317b31b6a /patches/source/cups/doinst.sh | |
parent | 590bfd3df8f47f122e60c09393d590903dffcf73 (diff) | |
download | current-f229174dfddc33a969342cd654ce8e824b9fda59.tar.gz current-f229174dfddc33a969342cd654ce8e824b9fda59.tar.xz |
Thu May 26 18:27:32 UTC 202220220526182732_15.0
patches/packages/cups-2.4.2-x86_64-1_slack15.0.txz: Upgraded.
Fixed certificate strings comparison for Local authorization.
For more information, see:
https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-26691
(* Security fix *)
Diffstat (limited to 'patches/source/cups/doinst.sh')
-rw-r--r-- | patches/source/cups/doinst.sh | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/patches/source/cups/doinst.sh b/patches/source/cups/doinst.sh new file mode 100644 index 000000000..b317ed95c --- /dev/null +++ b/patches/source/cups/doinst.sh @@ -0,0 +1,31 @@ +config() { + NEW="$1" + 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... +} +for file in etc/cups/*.new ; do + config $file +done + +if [ -r etc/pam.d/cups.new ]; then + config etc/pam.d/cups.new +fi + +# Leave any new rc.cups with the same permissions as the old one: +# This is a kludge, but it's because there's no --reference option +# on busybox's 'chmod': +if [ -e etc/rc.d/rc.cups ]; then + if [ -x etc/rc.d/rc.cups ]; then + chmod 755 etc/rc.d/rc.cups.new + else + chmod 644 etc/rc.d/rc.cups.new + fi +fi +# Then config() it: +config etc/rc.d/rc.cups.new |