From: Bram Moolenaar Date: Thu, 7 May 2020 16:51:27 +0000 (+0200) Subject: patch 8.2.0713: the pam_environment file is not recognized X-Git-Tag: v8.2.0713 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=611548105394fdb76827cd431230c9fbfed39929;p=vim patch 8.2.0713: the pam_environment file is not recognized Problem: The pam_environment file is not recognized. Solution: Add a filetype pattern for pamenv. (closes #6051) --- diff --git a/runtime/filetype.vim b/runtime/filetype.vim index 9fe4ecfe5..75bf5ac12 100644 --- a/runtime/filetype.vim +++ b/runtime/filetype.vim @@ -1133,6 +1133,9 @@ au BufNewFile,BufRead pf.conf setf pf " Pam conf au BufNewFile,BufRead */etc/pam.conf setf pamconf +" Pam environment +au BufNewFile,BufRead .pam_environment setf pamenv + " PApp au BufNewFile,BufRead *.papp,*.pxml,*.pxsl setf papp diff --git a/src/testdir/test_filetype.vim b/src/testdir/test_filetype.vim index e71ccd44e..117b52072 100644 --- a/src/testdir/test_filetype.vim +++ b/src/testdir/test_filetype.vim @@ -322,6 +322,7 @@ let s:filename_checks = { \ 'openroad': ['file.or'], \ 'ora': ['file.ora'], \ 'pamconf': ['/etc/pam.conf'], + \ 'pamenv': ['/home/user/.pam_environment'], \ 'papp': ['file.papp', 'file.pxml', 'file.pxsl'], \ 'pascal': ['file.pas', 'file.dpr'], \ 'passwd': ['any/etc/passwd', 'any/etc/passwd-', 'any/etc/passwd.edit', 'any/etc/shadow', 'any/etc/shadow-', 'any/etc/shadow.edit', 'any/var/backups/passwd.bak', 'any/var/backups/shadow.bak'], diff --git a/src/version.c b/src/version.c index f9ce53b40..2d5931ac5 100644 --- a/src/version.c +++ b/src/version.c @@ -746,6 +746,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 713, /**/ 712, /**/