tomb

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

commit f8e9837dc1b589861793529ea5603428cdfd88cb
parent 3d611d2fb4228a3e348105faf162504d706168aa
Author: boyska <piuttosto@logorroici.org>
Date:   Sat, 20 Aug 2011 19:25:11 +0200

FIX help was "always" showing up

Actually, showing up IFF sudo has a cached password

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

diff --git a/src/tomb b/src/tomb @@ -184,7 +184,7 @@ check_priv() { func "Using sudo for root execution of 'tomb ${(f)OLDARGS}'" # check if sudo has a timestamp active sudok=false - sudo -n ${TOMBEXEC} 2> /dev/null + sudo -n ${TOMBEXEC} &> /dev/null if [ $? != 0 ]; then # if not then ask a password cat <<EOF | pinentry 2>/dev/null | awk '/^D/ { print $2 }' | sudo -S -v OPTION ttyname=$TTY