tomb

the crypto undertaker
git clone git://parazyd.org/tomb.git
Log | Files | Refs | README | LICENSE

commit 7a16c7f1877bacbab4012682d6551b0f71099c47
parent 18febabbe5b490218f305abc12bfa3aaa7e4148d
Author: BoySka <boyska@gmail.com>
Date:   Fri, 28 Oct 2011 20:18:34 +0200

Stupid fix: abort after 3 attempts missing

Diffstat:
Msrc/tomb | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/tomb b/src/tomb @@ -295,7 +295,7 @@ check_priv() { sudok=false sudo -n ${TOMBEXEC} &> /dev/null if [ $? != 0 ]; then # if not then ask a password - for imnotused in 1 2 3; do + for i in 1 2 3; do cat <<EOF | pinentry 2>/dev/null | awk '/^D / { sub(/^D /, ""); print }' | sudo -S -v OPTION ttyname=$TTY OPTION lc-ctype=$LANG @@ -308,6 +308,7 @@ EOF break fi if [[ $i == 3 ]]; then + exit 16 fi done fi