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.
This commit is contained in:
stanzgy 2019-09-18 21:04:29 +08:00
parent 71aedf30a1
commit 7d280dc41f

View file

@ -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=$?