Compare commits

...

2 Commits

Author SHA1 Message Date
Steven Armstrong 6f8c774cb0 workaround mktemp -u checking for write access
Signed-off-by: Steven Armstrong <steven@armstrong.cc>
2022-04-14 00:16:10 +02:00
Steven Armstrong af54fe6feb changelog++
Signed-off-by: Steven Armstrong <steven@armstrong.cc>
2022-04-11 00:04:41 +02:00
2 changed files with 2 additions and 1 deletions

View File

@ -89,7 +89,7 @@ if [ "$state_should" = "present" ] || [ "$state_should" = "exists" ]; then
touch "$__object/files/set-attributes"
# 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.
# However:
# a) cdist usually writes to directories that are not user writable

View File

@ -14,6 +14,7 @@ next:
* Types __letsencrypt_cert, __grafana_dashboard: Improve bullseye support (Evilham)
* Type __ssh_authorized_key: Also remove tmpfile if removing line (Mark Verboom)
* Type __apt_pin: Add default priority, add comment in generated files (Daniel Fancsali)
* Type __file: make file uploading and attribute changes more atomic (Steven Armstrong)
6.9.8: 2021-08-24
* Type __rsync: Rewrite (Ander Punnar)