Bug#329826: symlinks cause vim file locking to do the wrong thing

Len Sorensen lennartsorensen at ruggedcom.com
Fri Sep 23 23:56:13 UTC 2005


Package: vim
Version: 1:6.3-071+1
Severity: important


If you have a symlink to a file and open the file for editing with vim
using the symlink, it creates a lock based on the symlink rather than
the actual file, which means you could have two people editing the same
file without locking warning them about this.

vim should dereference the symlink to get the real file and use that
name for the locking so that all instances no matter which symlink they
go through would end up with the same lock file.

Len Sorensen

-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.12-1-k7
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages vim depends on:
ii  dpkg                     1.10.28         Package maintenance system for Deb
ii  libc6                    2.3.2.ds1-22    GNU C Library: Shared libraries an
ii  libgpmg1                 1.19.6-19sarge1 General Purpose Mouse - shared lib
ii  libncurses5              5.4-9           Shared libraries for terminal hand
ii  vim-common               1:6.3-071+1     Vi IMproved - Common files

-- no debconf information




More information about the pkg-vim-maintainers mailing list