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

@@ -306,7 +306,7 @@
openers =
let
as-pdf = pkgs.writers.writeDash "as-pdf" ''
d=$(mktemp -d)
d=$(mktemp -p "$XDG_RUNTIME_DIR" -d)
trap clean EXIT
clean() {
rm -rf "$d"