1
0
Fork 0
mirror of git://slackware.nl/current.git synced 2025-02-11 08:48:30 +01:00
slackware-current/patches/source/wget/doinst.sh
Patrick J Volkerding 431dd191b6 Mon Nov 11 20:56:27 UTC 2024
patches/packages/wget-1.25.0-x86_64-1_slack15.0.txz:  Upgraded.
  [Breaking change] Drop support for shorthand FTP URLs (CVE-2024-10524)
  [Breaking change] Switch to continuous reading from stdin pipes
  For more information, see:
    https://www.cve.org/CVERecord?id=CVE-2024-10524
  (* Security fix *)
2024-11-12 13:30:48 +01:00

14 lines
367 B
Bash

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...
}
config etc/wgetrc.new