summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-05-07 18:51:27 +0200
committerBram Moolenaar <Bram@vim.org>2020-05-07 18:51:27 +0200
commit611548105394fdb76827cd431230c9fbfed39929 (patch)
tree410a46043c93be4aaeff1e518cb050c86e4407ff
parent0ff5dedf0f69e56320199db7a2aad46be2a1f9b7 (diff)
patch 8.2.0713: the pam_environment file is not recognizedv8.2.0713
Problem: The pam_environment file is not recognized. Solution: Add a filetype pattern for pamenv. (closes #6051)
-rw-r--r--runtime/filetype.vim3
-rw-r--r--src/testdir/test_filetype.vim1
-rw-r--r--src/version.c2
3 files changed, 6 insertions, 0 deletions
diff --git a/runtime/filetype.vim b/runtime/filetype.vim
index 9fe4ecfe57..75bf5ac126 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 e71ccd44ef..117b520723 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 f9ce53b40f..2d5931ac54 100644
--- 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,