Bug#721944: vim: "Not reading undo file, owner differs" if the edited file belongs to another user

cac2s cac2s at rambler.ru
Thu Sep 5 18:40:03 UTC 2013

Package: vim
Version: 2:7.3.547-7
Severity: important

Dear Maintainer,
I encountered such a problem:

undo settings from .vimrc:

set history=1000
set undodir=~/.vim/undofiles
set undofile

edited file — /var/www/htdocs/robots.txt
undo files stored in ~/.vim/undofiles/

# ls -la /var/www/htdocs/robots.txt ~/.vim/undofiles/%var%www%htdocs%robots.txt
-rw-r----- 1 root     www-data  519 Sep  5 20:34 /root/.vim/undofiles/%var%www%htdocs%robots.txt
-rw-r----- 1 www-data www-data 1562 Sep  5 20:34 /var/www/htdocs/robots.txt

As you can see from the output, the edited file owner is different from the his undo file, in consequence of which there is an error "Not reading undo file, owner differs" while opening file (with 'set verbose=1' in ~/.vimrc)

-- Package-specific info:

--- real paths of main Vim binaries ---
/usr/bin/vi is /usr/bin/vim.gtk
/usr/bin/vim is /usr/bin/vim.gtk
/usr/bin/gvim is /usr/bin/vim.gtk

-- System Information:
Debian Release: 7.1
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.2.0-4-amd64 (SMP w/2 CPU cores)
Locale: LANG=ru_UA.UTF-8, LC_CTYPE=ru_UA.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages vim depends on:
ii  libacl1      2.2.51-8
ii  libc6        2.17-92
ii  libgpm2      1.20.4-6
ii  libselinux1  2.1.9-5
ii  libtinfo5    5.9-10
ii  vim-common   2:7.3.547-7
ii  vim-runtime  2:7.3.547-7

vim recommends no packages.

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

-- no debconf information

More information about the pkg-vim-maintainers mailing list