Package: pinentry-gtk2
Version: 0.8.1-1
Severity: normal

This software is designed to fallback to curses mode if X11 is not
available. The way this works is that it fallback if the $DISPLAY
variable is not set. So that works.

The problem is if that variable *is* set, but the program can't
connect to it, it totally fails. Demonstration:

anarcat@marcos:~$ DISPLAY= pinentry
OK Your orders please
^C
anarcat@marcos:~$ DISPLAY=:0 pinentry
No protocol specified

(pinentry:20732): Gtk-WARNING **: cannot open display: :0
anarcat@marcos:~$ 

This seems a little counter-intuitive... and fails in miserable ways
from the users' perspective:

anarcat@marcos:~$ gpg -s -a

You need a passphrase to unlock the secret key for
user: "Antoine Beaupr� (work) <anar...@koumbit.org>"
4096-bit RSA key, ID 7B75921E, created 2009-05-29

gpg: cancelled by user
gpg: no default secret key: bad passphrase
gpg: signing failed: bad passphrase

I looked at the code a bit and the problem seems to be that the
pinentry_have_display() function only checks the DISPLAY variable and
doesn't actually try to connect to the display.

-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.39-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=fr_CA.utf8, LC_CTYPE=fr_CA.utf8 (charmap=UTF-8) (ignored: LC_ALL 
set to fr_CA.UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages pinentry-gtk2 depends on:
ii  libc6                         2.13-10    Embedded GNU C Library: Shared lib
ii  libglib2.0-0                  2.28.6-1   The GLib library of C routines
ii  libgtk2.0-0                   2.24.4-3   The GTK+ graphical user interface 
ii  libncurses5                   5.9-1      shared libraries for terminal hand
ii  libpango1.0-0                 1.28.4-1   Layout and rendering of internatio

pinentry-gtk2 recommends no packages.

Versions of packages pinentry-gtk2 suggests:
ii  pinentry-doc                  0.8.1-1    documentation for pinentry package

-- no debconf information



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

  • Bug#635935: fails to fallback if it can't connect to DISP... Antoine Beaupré

Reply via email to