commit a04f64f5cd922f37a0cd89206d9c8934f6992d2d
parent 521ff6b8290c9da3ecd8ca55dbaf0ce820c6ff22
Author: boyska <piuttosto@logorroici.org>
Date:   Thu, 31 Mar 2011 01:14:51 +0200
avoid debianutils dependency
tempfile bad, mktemp good
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/tomb b/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