From 17b759d6975b8bfb3fbdddabd429680b6fa78939 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?= Date: Tue, 30 Nov 2021 17:26:24 +0700 Subject: update-ca-certificates: compat with non-GNU mktemp(1) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit BSD and BusyBox lacks --tmpdir support. Emulate it with -p instead. Close bugs #1000847 Signed-off-by: Đoàn Trần Công Danh --- sbin/update-ca-certificates | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sbin/update-ca-certificates b/sbin/update-ca-certificates index 9a876d7..78dc8f7 100755 --- a/sbin/update-ca-certificates +++ b/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 -- cgit v1.2.1