Package: vim-runtime
Version: 1:7.0-219+1
Severity: minor
File: /usr/share/vim/vim70/filetype.vim
Tags: patch

filetype.vim doesn't detect /etc/passwd-, /etc/passwd.edit (created by
vipw), /var/backups/passwd.bak, /etc/shadow.edit and
/var/backups/shadow.bak as passwd files. Also /etc/group-,
/etc/group.edit, /var/backups/group.bak, /etc/gshadow, /etc/gshadow-,
/etc/gshadow.edit and /var/backups/gshadow.bak aren't properly detected.
Attached patch fixes that.

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.16-ck11 (PREEMPT)
Locale: LANG=pl_PL, LC_CTYPE=pl_PL (charmap=ISO-8859-2) (ignored: LC_ALL set to 
pl_PL)
Shell: /bin/sh linked to /bin/bash

vim-runtime depends on no packages.

Versions of packages vim-runtime recommends:
ii  vim                          1:7.0-219+1 Vi IMproved - enhanced vi editor
ii  vim-gtk                      1:7.0-219+1 Vi IMproved - enhanced vi editor -

-- no debconf information

-- 
    Linux jest darmowy, jeśli twój czas nie przedstawia żadnej wartości.
    Jeśli jest coś warty(czas), Linux jest po prostu tańszy od innych.
        Jarek Kamiński
        gg# 453620
--- filetype.vim~	2007-03-21 07:52:36.000000000 +0100
+++ filetype.vim	2007-04-21 15:46:53.000000000 +0200
@@ -1,7 +1,7 @@
 " Vim support file to detect file types
 "
 " Maintainer:	Bram Moolenaar <[EMAIL PROTECTED]>
-" Last Change:	2006 May 02
+" Last Change:	2007 Apr 21
 
 " Listen very carefully, I will say this only once
 if exists("did_load_filetypes")
@@ -655,7 +655,7 @@
 au BufNewFile,BufRead *.gsp			setf gsp
 
 " Group file
-au BufNewFile,BufRead /etc/group		setf group
+au BufNewFile,BufRead /etc/group,/etc/group-,/etc/group.edit,/var/backups/group.bak,/etc/gshadow,/etc/gshadow-,/etc/gshadow.edit,/var/backups/gshadow.bak setf group
 
 " GTK RC
 au BufNewFile,BufRead .gtkrc,gtkrc		setf gtkrc
@@ -1102,7 +1102,7 @@
 au BufNewFile,BufRead *.papp,*.pxml,*.pxsl	setf papp
 
 " Password file
-au BufNewFile,BufRead /etc/passwd,/etc/shadow,/etc/shadow- setf passwd
+au BufNewFile,BufRead /etc/passwd,/etc/passwd-,/etc/passwd.edit,/var/backups/passwd.bak,/etc/shadow,/etc/shadow-,/etc/shadow.edit,/var/backups/shadow.bak setf passwd
 
 " Pascal (also *.p)
 au BufNewFile,BufRead *.pas			setf pascal

Attachment: pgpRTsIvTJOGm.pgp
Description: PGP signature

Reply via email to