1
0
mirror of https://github.com/kmein/niveum synced 2026-03-16 10:11:08 +01:00

secure mktemp

This commit is contained in:
2025-12-27 07:29:47 +01:00
parent b233c18709
commit 95e5a58f15
7 changed files with 15 additions and 8 deletions

View File

@@ -6,7 +6,7 @@
nsxiv,
}:
writers.writeDashBin "qrpaste" ''
file="$(${mktemp}/bin/mktemp --tmpdir)"
file="$(${mktemp}/bin/mktemp -p "$XDG_RUNTIME_DIR" qrpaste-XXXXXX.png)"
trap clean EXIT
clean() {
rm "$file"