15 lines
730 B
Diff
15 lines
730 B
Diff
diff --git a/sbin/update-ca-certificates b/sbin/update-ca-certificates
|
|
--- a/work/sbin/update-ca-certificates
|
|
+++ b/work/sbin/update-ca-certificates
|
|
@@ -81,8 +81,8 @@ trap cleanup 0
|
|
# Helper files. (Some of them are not simple arrays because we spawn
|
|
# subshells later on.)
|
|
TEMPBUNDLE="${ETCCERTSDIR}/${CERTBUNDLE}.new"
|
|
-ADDED="$(mktemp --tmpdir "ca-certificates.tmp.XXXXXX")"
|
|
-REMOVED="$(mktemp --tmpdir "ca-certificates.tmp.XXXXXX")"
|
|
+ADDED="$(mktemp -p "${TMPDIR:-/tmp}" "ca-certificates.tmp.XXXXXX")"
|
|
+REMOVED="$(mktemp -p "${TMPDIR:-/tmp}" "ca-certificates.tmp.XXXXXX")"
|
|
|
|
# Adds a certificate to the list of trusted ones. This includes a symlink
|
|
# in /etc/ssl/certs to the certificate file and its inclusion into the
|