slackware-current/source/ap/nvme-cli/doinst.sh
Patrick J Volkerding f75fcd750e Wed Jan 31 21:19:19 UTC 2024
ap/nvme-cli-2.7.1-x86_64-1.txz:  Upgraded.
l/libnvme-1.7.1-x86_64-1.txz:  Added.
  This is required by nvme-cli.
l/pipewire-1.0.2-x86_64-1.txz:  Upgraded.
n/curl-8.6.0-x86_64-1.txz:  Upgraded.
n/libmilter-8.18.1-x86_64-1.txz:  Upgraded.
extra/sendmail/sendmail-8.18.1-x86_64-1.txz:  Upgraded.
  sendmail through 8.17.2 allows SMTP smuggling in certain configurations.
  Remote attackers can use a published exploitation technique to inject e-mail
  messages with a spoofed MAIL FROM address, allowing bypass of an SPF
  protection mechanism. This occurs because sendmail supports <LF>.<CR><LF>
  but some other popular e-mail servers do not. This is resolved in 8.18 and
  later versions with 'o' in srv_features.
  For more information, see:
    https://www.cve.org/CVERecord?id=CVE-2023-51765
  (* Security fix *)
extra/sendmail/sendmail-cf-8.18.1-noarch-1.txz:  Upgraded.
2024-01-31 23:07:15 +01:00

14 lines
385 B
Bash

#!/bin/sh
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/nvme/discovery.conf.new