fix: on -k - , wipe temp file

This commit is contained in:
Jaromil 2011-08-20 19:00:10 +02:00
parent f7c1c05ad4
commit 29f250d8f2

View File

@ -758,6 +758,7 @@ mount_tomb() {
# set up variables to be used
# the full path is made with $tombdir/$tombfile
local tombkey
local tombfile
local tombdir
@ -865,6 +866,12 @@ mount_tomb() {
rmdir $tombkeydir
fi
# if key was from stdin delete temp file and dir
if [ $tombkeydir ]; then
${WIPE[@]} ${tombkey}
rmdir $tombkeydir
fi
if [ -r /dev/mapper/${mapper} ]; then
break; # password was correct
fi