Bug#573440: vim-scripts: gnupg.vim wipes a file on misspelled passphrase with :wq
Filippo Giunchedi
filippo at debian.org
Thu Mar 11 14:48:44 UTC 2010
Package: vim-scripts
Version: 20091011
Severity: normal
Hi,
while using gnupg.vim with symmetric cipher I noticed that on :wq (an habit of
mine, but I guess of many other vim users) if you mistype the passphrase on
prompt the written file will be empty and vim will exit, IOW the file is
truncated.
A suggested temporary fix is to have the file without write permission so vim
will refuse to write on :wq, though it would be nice if the plugin can abort
the command sequence, not sure if that's possibile though.
thanks,
filippo
-- System Information:
Debian Release: squeeze/sid
APT prefers unstable
APT policy: (990, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.33-rc8 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
vim-scripts depends on no packages.
Versions of packages vim-scripts recommends:
ii vim 2:7.2.330-1 Vi IMproved - enhanced vi editor
ii vim-addon-manager 0.4.3 manager of addons for the Vim edit
ii vim-gnome [vim] 2:7.2.330-1 Vi IMproved - enhanced vi editor -
Versions of packages vim-scripts suggests:
ii libtemplate-perl 2.20-1 template processing system written
pn perlsgml <none> (no description available)
-- no debconf information
-- debsums errors found:
debsums: changed file /usr/share/vim-scripts/plugin/DoxygenToolkit.vim (from vim-scripts package)
More information about the pkg-vim-maintainers
mailing list