Your message dated Sat, 5 Nov 2011 23:08:00 -0400
with message-id <[email protected]>
and subject line Re: Bug#647591: vim: encryption set with :X is not applied by 
:x if there are no other changes
has caused the Debian Bug report #647591,
regarding vim: encryption set with :X is not applied by :x if there are no 
other changes
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
647591: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=647591
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: vim
Version: 2:7.3.333-1
Severity: important

Hi,
when I open a textfile with vim and set or change the encryption with :X and 
leave vim then with :x without doing any other changes, the encryption is not
applied to this file. When I change something and leave with :x or leave with
:wq without changes, the encryption is applied. 

I don't think this is the expected behavior.
I marked this bug as "important" because it could be a security issue if a 
user assumes, that his file is encrypted without rechecking that.

Greetings,
Michael

-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (700, 'testing'), (650, 'unstable'), (600, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 3.0.0-1-686-pae (SMP w/2 CPU cores)
Locale: LANG=de_DE.utf8, LC_CTYPE=de_DE.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages vim depends on:
ii  libacl1      2.2.51-3   
ii  libc6        2.13-21    
ii  libgpm2      1.20.4-4   
ii  libselinux1  2.1.0-1    
ii  libtinfo5    5.9-2      
ii  vim-common   2:7.3.333-1
ii  vim-runtime  2:7.3.333-1

vim recommends no packages.

Versions of packages vim suggests:
ii  ctags        <none>  
ii  vim-doc      <none>  
ii  vim-scripts  20110813

-- no debconf information



--- End Message ---
--- Begin Message ---
On Fri, Nov 04, 2011 at 11:52:26AM +0100, Michael Stummvoll wrote:
> when I open a textfile with vim and set or change the encryption with :X and 
> leave vim then with :x without doing any other changes, the encryption is not
> applied to this file. When I change something and leave with :x or leave with
> :wq without changes, the encryption is applied. 
> 
> I don't think this is the expected behavior.

It's exactly the expected behavior.  It's even documented in :help :X

  The typed key is stored in the 'key' option, which is used to encrypt
  the file when it is written.  The file will remain unchanged until you
  write it.  See also |-x|.

All :X does is prime the 'key' option, so that when you do write out the
file, it will be encrypted as requested.

-- 
James
GPG Key: 1024D/61326D40 2003-09-02 James McCoy <[email protected]>

Attachment: signature.asc
Description: Digital signature


--- End Message ---

Reply via email to