mirror of
https://github.com/Llewellynvdm/Tomb.git
synced 2024-11-26 06:46:30 +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
|
# set up variables to be used
|
||||||
# the full path is made with $tombdir/$tombfile
|
# the full path is made with $tombdir/$tombfile
|
||||||
|
|
||||||
local tombkey
|
local tombkey
|
||||||
local tombfile
|
local tombfile
|
||||||
local tombdir
|
local tombdir
|
||||||
@ -865,6 +866,12 @@ mount_tomb() {
|
|||||||
rmdir $tombkeydir
|
rmdir $tombkeydir
|
||||||
fi
|
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
|
if [ -r /dev/mapper/${mapper} ]; then
|
||||||
break; # password was correct
|
break; # password was correct
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user