mirror of
https://github.com/Llewellynvdm/Tomb.git
synced 2024-11-04 20:37:55 +00:00
Pinentry dava errore di parametro LC_CTYPE non definito, e si
piantava con cpu sparata al 100%. Non capiva su quale TTY si trovava. Per farla breve, necessitava di sti due parametri: OPTION ttyname=$TTY OPTION lc-ctype=$LANG BELLA LI'
This commit is contained in:
parent
983ba2f5b8
commit
521ff6b829
2
AUTHORS
2
AUTHORS
@ -4,6 +4,6 @@ Tomb is designed and written by Denis Roio aka Jaromil.
|
||||
Tomb's artwork is contributed by Jordi aka Mon Mort
|
||||
|
||||
Testing and fixes are contributed by Dreamer, Hellekin O. Wolf,
|
||||
Shining and Mancausoft.
|
||||
Shining, Mancausoft and Asbesto.
|
||||
|
||||
Cryptsetup is developed by Christophe Saout and Clemens Fruhwirth
|
||||
|
@ -1,3 +1,11 @@
|
||||
April 2011 - 1.0
|
||||
|
||||
Fixed 2 bugs about pinentry ncurses requester; first,
|
||||
the "LC_CTYPE" error, and a weird 100% cpu hangout.
|
||||
pinentry need to know the LC_CTYPE parameter and the TTY
|
||||
in which he's working, so I added them in the code.
|
||||
-- asbesto
|
||||
|
||||
March 2011 - 1.0
|
||||
|
||||
Clean and stable. Now passwords are handled exclusively using
|
||||
|
4
src/tomb
4
src/tomb
@ -63,6 +63,8 @@ ask_password() {
|
||||
fi
|
||||
|
||||
cat <<EOF | GTK2_RC_FILES=${GTK2_RC} pinentry | awk '/^D/ { print $2 }'
|
||||
OPTION ttyname=$TTY
|
||||
OPTION lc-ctype=$LANG
|
||||
SETTITLE Insert tomb password
|
||||
SETDESC Open tomb: $1
|
||||
SETPROMPT Password:
|
||||
@ -108,6 +110,8 @@ check_priv() {
|
||||
sudo -n tomb 2> /dev/null
|
||||
if [ $? != 0 ]; then # if not then ask a password
|
||||
cat <<EOF | pinentry | awk '/^D/ { print $2 }' | sudo -S -v
|
||||
OPTION ttyname=$TTY
|
||||
OPTION lc-ctype=$LANG
|
||||
SETTITLE Super user privileges required
|
||||
SETDESC Sudo execution of Tomb ${ARGS[@]}
|
||||
SETPROMPT Insert your USER password:
|
||||
|
Loading…
Reference in New Issue
Block a user