mirror of
https://github.com/Llewellynvdm/Tomb.git
synced 2025-01-22 22:48:24 +00:00
FIX #36 pinentry and password with spaces
This commit is contained in:
parent
ab7beebfc9
commit
f0cd7f50a2
4
src/tomb
4
src/tomb
@ -154,7 +154,7 @@ ask_password() {
|
|||||||
GTK2_RC=/usr/share/themes/tomb/gtk-2.0-key/gtkrc
|
GTK2_RC=/usr/share/themes/tomb/gtk-2.0-key/gtkrc
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cat <<EOF | GTK2_RC_FILES=${GTK2_RC} pinentry 2>/dev/null | awk '/^D/ { print $2 }'
|
cat <<EOF | GTK2_RC_FILES=${GTK2_RC} pinentry 2>/dev/null | awk '/^D / { sub(/^D /, ""); print }'
|
||||||
OPTION ttyname=$TTY
|
OPTION ttyname=$TTY
|
||||||
OPTION lc-ctype=$LANG
|
OPTION lc-ctype=$LANG
|
||||||
SETTITLE Insert tomb password
|
SETTITLE Insert tomb password
|
||||||
@ -186,7 +186,7 @@ check_priv() {
|
|||||||
sudok=false
|
sudok=false
|
||||||
sudo -n ${TOMBEXEC} &> /dev/null
|
sudo -n ${TOMBEXEC} &> /dev/null
|
||||||
if [ $? != 0 ]; then # if not then ask a password
|
if [ $? != 0 ]; then # if not then ask a password
|
||||||
cat <<EOF | pinentry 2>/dev/null | awk '/^D/ { print $2 }' | sudo -S -v
|
cat <<EOF | pinentry 2>/dev/null | awk '/^D / { sub(/^D /, ""); print }' | sudo -S -v
|
||||||
OPTION ttyname=$TTY
|
OPTION ttyname=$TTY
|
||||||
OPTION lc-ctype=$LANG
|
OPTION lc-ctype=$LANG
|
||||||
SETTITLE Super user privileges required
|
SETTITLE Super user privileges required
|
||||||
|
Loading…
x
Reference in New Issue
Block a user