blob: 6e2171f7584d07bf886471e7679114e73a9d31ae [file] [log] [blame]
Patrick Williamsd8c66bc2016-06-20 12:57:21 -05001From 30378026d136efa779732e3f6664e2ecf461e458 Mon Sep 17 00:00:00 2001
2From: Patrick Ohly <patrick.ohly@intel.com>
3Date: Thu, 17 Mar 2016 12:38:09 +0100
4Subject: [PATCH] update-ca-certificates: support Toybox
5
6"mktemp -t" is deprecated and does not work when using Toybox. Replace
7with something that works also with Toybox.
8
9Upstream-Status: Pending
10
11Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
12---
13 sbin/update-ca-certificates | 6 +++---
14 1 file changed, 3 insertions(+), 3 deletions(-)
15
16diff --git a/sbin/update-ca-certificates b/sbin/update-ca-certificates
17index 79c41bb..ae9e3f1 100755
18--- a/sbin/update-ca-certificates
19+++ b/sbin/update-ca-certificates
20@@ -113,9 +113,9 @@ trap cleanup 0
21
22 # Helper files. (Some of them are not simple arrays because we spawn
23 # subshells later on.)
24-TEMPBUNDLE="$(mktemp -t "${CERTBUNDLE}.tmp.XXXXXX")"
25-ADDED="$(mktemp -t "ca-certificates.tmp.XXXXXX")"
26-REMOVED="$(mktemp -t "ca-certificates.tmp.XXXXXX")"
27+TEMPBUNDLE="$(mktemp -p${TMPDIR:-/tmp} "${CERTBUNDLE}.tmp.XXXXXX")"
28+ADDED="$(mktemp -p${TMPDIR:-/tmp} "ca-certificates.tmp.XXXXXX")"
29+REMOVED="$(mktemp -p${TMPDIR:-/tmp} "ca-certificates.tmp.XXXXXX")"
30
31 # Adds a certificate to the list of trusted ones. This includes a symlink
32 # in /etc/ssl/certs to the certificate file and its inclusion into the
33--
342.1.4