mirror of
https://github.com/Llewellynvdm/Tomb.git
synced 2024-11-22 12:35:13 +00:00
fix: on -k - , wipe temp file
This commit is contained in:
parent
f7c1c05ad4
commit
29f250d8f2
7
src/tomb
7
src/tomb
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user