mirror of
https://github.com/Llewellynvdm/Tomb.git
synced 2025-01-11 01:32:07 +00:00
avoid debianutils dependency
tempfile bad, mktemp good
This commit is contained in:
parent
521ff6b829
commit
a04f64f5cd
2
src/tomb
2
src/tomb
@ -303,7 +303,7 @@ create_tomb() {
|
||||
losetup -f ${tombdir}/${tombfile} # allocates the next loopback for our file
|
||||
|
||||
# create the keyfile in tmpfs so that we leave less traces in RAM
|
||||
keytmp=`tempfile -p tomb`
|
||||
keytmp=`mktemp /tmp/tomb.XXX`
|
||||
rm -f $keytmp
|
||||
mkdir -p $keytmp
|
||||
mount tmpfs ${keytmp} -t tmpfs -o size=1m
|
||||
|
Loading…
Reference in New Issue
Block a user