# HG changeset patch # User Bram Moolenaar # Date 1588870804 -7200 # Node ID 190ffc6453d47862b11ddbd638be48eb63354478 # Parent fe9a1cad4ea4587e1fe989afeb9d6b5e5ff46c92 patch 8.2.0713: the pam_environment file is not recognized Commit: https://github.com/vim/vim/commit/611548105394fdb76827cd431230c9fbfed39929 Author: Bram Moolenaar Date: Thu May 7 18:51:27 2020 +0200 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 https://github.com/vim/vim/issues/6051) diff --git a/runtime/filetype.vim b/runtime/filetype.vim --- 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 --- 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 --- a/src/version.c +++ b/src/version.c @@ -747,6 +747,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 713, +/**/ 712, /**/ 711,