Page MenuHome GnuPG

Doesn't unset noecho on SIGINT
Closed, ResolvedPublic

Description

There is a problem with gnupg described in Debian bug #321871 and Ubuntu bug
#294115. Consider the following example:

echo foo | gpg --sign - > /tmp/foo.asc

(be sure to put the command into the backticks, when executing it on the command
line). Then the terminal seems to be left in noecho mode. Can this be fixed please?

Details

External Link
http://bugs.debian.org/321871
Version
1.4.9

Related Objects

Event Timeline

dleidert set External Link to http://bugs.debian.org/321871.May 20 2009, 1:26 PM
dleidert set Version to 1.4.9.
dleidert added projects: gnupg, Bug Report, Debian.
dleidert added a subscriber: dleidert.

Fixed in svn rev 5021. Will be fixed for trunk as well. Patch attached.

I get a build failure. g10/gpgv.c probably misses:

  • g10/gpgv.c (Revision 5028)

+++ g10/gpgv.c (Arbeitskopie)
@@ -417,6 +417,7 @@
void tty_kill_prompt(void) {}
int tty_get_answer_is_yes( const char *prompt ) {return 0;}
int tty_no_terminal(int onoff) {return 0;}
+void tty_cleanup_after_signal (void) {}
#ifdef HAVE_LIBREADLINE
void tty_enable_completion(rl_completion_func_t *completer) {}
void tty_disable_completion(void) {}

Right, I did no "make dist" to check this. Fix committed.

werner claimed this task.
werner removed a project: Restricted Project.