Red Hat Bugzilla – Bug 969904
Saving a gpg encrypted file fails because pressing enter causes the Passphrase dialog box to close and not re-appear to confirm the password.
Last modified: 2013-08-26 02:29:51 EDT
Description of problem:
Using GNU Emacs on Fedora 18, if you attempt to save a GPG encrypted file and press Enter after typing the correct password in the Gnome "Enter Passphrase" dialog box, the dialog box closes but Emacs reports in its message area: Opening output file: Encrypt failed, Exit
The problem is that pressing Enter closes the Passphrase dialog box prematurely. If you click the Unlock button instead of pressing Enter, the dialog closes and re-appears, asking you to confirm the password, at which time Emacs then correctly saves the file.
Version-Release number of selected component (if applicable): emacs-24.2-18.fc18.x86_64
How reproducible: Always
Steps to Reproduce:
1. Create a file and encrypt it using gpg with a symmetric cipher using a passphrase. E.g, echo test > foo.txt; gpg -c foo.txt
2. Open the file in GNU emacs. Enter passphrase to decrypt.
3. Modify, then hit Ctrl-X Ctrl-S to save. Enter passphrase in Gnome dialog, then press Enter. Dialog box closes, does not re-prompt for confirmation, Emacs refuses to save the file.
Pressing Enter causes the Enter Passphrase dialog to close without confirming the password, so Emacs fails to save the file.
Pressing Enter should cause the dialog to re-appear to confirm the user password, at which point Emacs should then save the file.
I tested the bug but unable to reproduced.
version on my F18 is emacs-24.2-20.fc18.x86_64
As you mentioned file has been modified and during the save action
two dialogs were opened (one for entering passphrase and second one for passphrase confirmation).
Do you have still the problem with encprypted files?
(In reply to Petr Hracek from comment #1)
> I tested the bug but unable to reproduced.
> version on my F18 is emacs-24.2-20.fc18.x86_64
> As you mentioned file has been modified and during the save action
> two dialogs were opened (one for entering passphrase and second one for
> passphrase confirmation).
> Do you have still the problem with encprypted files?
I re-tried using emacs-24.2-20.fc18.x86_64 and the "confirm password" dialog now appears when I press enter. The problem appears to have been fixed.
Because of I can not reproduce that bug closing with CLOSE->NOTABUG