From 7d280dc41fd91fb51677b8df20d3d85587341842 Mon Sep 17 00:00:00 2001 From: stanzgy Date: Wed, 18 Sep 2019 21:04:29 +0800 Subject: [PATCH] Fix busybox mktemp compatibility Command `mktemp` accepts templates like /tmp/name.XXXXXX to create a temporary file. Standard GNU mktemp requires at least 3 'X's while busybox's version requires at least 6 'X's. For compatibility we should use at least 6 'X's in mktemp templates. --- bootstrap-salt.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bootstrap-salt.sh b/bootstrap-salt.sh index 9a234f0..05be645 100755 --- a/bootstrap-salt.sh +++ b/bootstrap-salt.sh @@ -499,7 +499,7 @@ exec 2>"$LOGPIPE" # 14 SIGALRM # 15 SIGTERM #---------------------------------------------------------------------------------------------------------------------- -APT_ERR=$(mktemp /tmp/apt_error.XXXX) +APT_ERR=$(mktemp /tmp/apt_error.XXXXXX) __exit_cleanup() { EXIT_CODE=$?