mirror of
https://github.com/saltstack/salt-bootstrap.git
synced 2025-04-16 09:40:21 +00:00
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:
parent
71aedf30a1
commit
7d280dc41f
1 changed files with 1 additions and 1 deletions
|
@ -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=$?
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue