tPinentry 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' - tomb - the crypto undertaker HTML git clone git://parazyd.org/tomb.git DIR Log DIR Files DIR Refs DIR README DIR LICENSE --- DIR commit 521ff6b8290c9da3ecd8ca55dbaf0ce820c6ff22 DIR parent 983ba2f5b8dcc8bdd4e1d90cf584d1f5c88fe76b HTML Author: Asbesto <asbesto@freaknet.org> Date: Wed, 13 Apr 2011 16:56:57 +0200 Pinentry dava errore di parametro LC_CTYPE non definito, e si piantava con cpu sparata al 100%. Non capiva su quale TTY si ttrovava. Per farla breve, necessitava di sti due parametri: OPTION ttyname=$TTY OPTION lc-ctype=$LANG BELLA LI' Diffstat: M AUTHORS | 2 +- M ChangeLog | 8 ++++++++ M src/tomb | 4 ++++ 3 files changed, 13 insertions(+), 1 deletion(-) --- DIR diff --git a/AUTHORS b/AUTHORS t@@ -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 DIR diff --git a/ChangeLog b/ChangeLog t@@ -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 DIR diff --git a/src/tomb b/src/tomb t@@ -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: t@@ -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: