Skip to content

Commit ed5a627

Browse files
committed
Use mktemp (boo#1228861)
1 parent f976e8e commit ed5a627

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

usr/lib/tik/lib/tik-functions

+1-1
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ reread_partitiontable() {
336336

337337
create_keyfile() {
338338
# Even if there's no partitions using encryption, systemd-repart will need a key-file defined for the --key-file parameter.
339-
tik_keyfile=/tmp/tikkeyfile
339+
tik_keyfile=$(mktemp /tmp/tik.XXXXXXXXXX)
340340
log "[create_keyfile] Creating keyfile ${tik_keyfile}"
341341
prun /usr/bin/dd bs=512 count=4 if=/dev/urandom of=${tik_keyfile} iflag=fullblock
342342
prun /usr/bin/chmod 400 ${tik_keyfile}

0 commit comments

Comments
 (0)