summaryrefslogtreecommitdiffstats
path: root/source/ap/nvme-cli/doinst.sh
diff options
context:
space:
mode:
author Patrick J Volkerding <volkerdi@slackware.com>2024-01-31 21:19:19 +0000
committer Eric Hameleers <alien@slackware.com>2024-01-31 23:07:15 +0100
commitf75fcd750efad1d366cce38d805a708abb4f3af6 (patch)
treebaa185c434dc07e0028d12a9cdbe7ffb6b247ba6 /source/ap/nvme-cli/doinst.sh
parent7b9b973e94adeb7444208efdd7ad577fce430e53 (diff)
downloadcurrent-f75fcd750efad1d366cce38d805a708abb4f3af6.tar.gz
current-f75fcd750efad1d366cce38d805a708abb4f3af6.tar.xz
Wed Jan 31 21:19:19 UTC 202420240131211919
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.
Diffstat (limited to 'source/ap/nvme-cli/doinst.sh')
-rw-r--r--source/ap/nvme-cli/doinst.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/source/ap/nvme-cli/doinst.sh b/source/ap/nvme-cli/doinst.sh
new file mode 100644
index 000000000..d2bc87c16
--- /dev/null
+++ b/source/ap/nvme-cli/doinst.sh
@@ -0,0 +1,14 @@
+#!/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