workaround mktemp -u checking for write access
Signed-off-by: Steven Armstrong <steven@armstrong.cc>
This commit is contained in:
parent
af54fe6feb
commit
6f8c774cb0
1 changed files with 1 additions and 1 deletions
|
@ -89,7 +89,7 @@ if [ "$state_should" = "present" ] || [ "$state_should" = "exists" ]; then
|
||||||
touch "$__object/files/set-attributes"
|
touch "$__object/files/set-attributes"
|
||||||
|
|
||||||
# upload file to temp location
|
# upload file to temp location
|
||||||
upload_destination="$(mktemp -u "${destination}.cdist.XXXXXXXXXX")"
|
upload_destination="$(mktemp -u "/__cdist${destination}.cdist.XXXXXXXXXX" | sed 's|^/__cdist||')"
|
||||||
# Yes, we are aware that this is a race condition.
|
# Yes, we are aware that this is a race condition.
|
||||||
# However:
|
# However:
|
||||||
# a) cdist usually writes to directories that are not user writable
|
# a) cdist usually writes to directories that are not user writable
|
||||||
|
|
Loading…
Reference in a new issue