tStupid fix: abort after 3 attempts missing - tomb - the crypto undertaker
HTML git clone git://parazyd.org/tomb.git
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
DIR commit 7a16c7f1877bacbab4012682d6551b0f71099c47
DIR parent 18febabbe5b490218f305abc12bfa3aaa7e4148d
HTML Author: BoySka <boyska@gmail.com>
Date: Fri, 28 Oct 2011 20:18:34 +0200
Stupid fix: abort after 3 attempts missing
Diffstat:
M src/tomb | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
DIR diff --git a/src/tomb b/src/tomb
t@@ -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
t@@ -308,6 +308,7 @@ EOF
break
fi
if [[ $i == 3 ]]; then
+ exit 16
fi
done
fi