Patch 8.2.3604

4 views
Skip to first unread message

Bram Moolenaar

unread,
Nov 16, 2021, 11:39:21 AM11/16/21
to vim...@googlegroups.com

Patch 8.2.3604
Problem: Not all sudoers files are recognized.
Solution: Add a file pattern. (Doug Kearns, closes #1192)
Files: runtime/filetype.vim, src/testdir/test_filetype.vim


*** ../vim-8.2.3603/runtime/filetype.vim 2021-11-16 15:28:05.451664358 +0000
--- runtime/filetype.vim 2021-11-16 16:33:56.321992677 +0000
***************
*** 2307,2312 ****
--- 2307,2315 ----
au BufNewFile,BufRead .kshrc* call dist#ft#SetFileTypeSH("ksh")
au BufNewFile,BufRead .profile* call dist#ft#SetFileTypeSH(getline(1))

+ " Sudoers
+ au BufNewFile,BufRead */etc/sudoers.d/* call s:StarSetf('sudoers')
+
" tcsh scripts ending in a star
au BufNewFile,BufRead .tcshrc* call dist#ft#SetFileTypeShell("tcsh")

*** ../vim-8.2.3603/src/testdir/test_filetype.vim 2021-11-16 15:28:05.451664358 +0000
--- src/testdir/test_filetype.vim 2021-11-16 16:34:57.065907552 +0000
***************
*** 482,488 ****
\ 'st': ['file.st'],
\ 'stata': ['file.ado', 'file.do', 'file.imata', 'file.mata'],
\ 'stp': ['file.stp'],
! \ 'sudoers': ['any/etc/sudoers', 'sudoers.tmp', '/etc/sudoers'],
\ 'svg': ['file.svg'],
\ 'svn': ['svn-commitfile.tmp', 'svn-commit-file.tmp', 'svn-commit.tmp'],
\ 'swift': ['file.swift'],
--- 482,488 ----
\ 'st': ['file.st'],
\ 'stata': ['file.ado', 'file.do', 'file.imata', 'file.mata'],
\ 'stp': ['file.stp'],
! \ 'sudoers': ['any/etc/sudoers', 'sudoers.tmp', '/etc/sudoers', 'any/etc/sudoers.d/file'],
\ 'svg': ['file.svg'],
\ 'svn': ['svn-commitfile.tmp', 'svn-commit-file.tmp', 'svn-commit.tmp'],
\ 'swift': ['file.swift'],
*** ../vim-8.2.3603/src/version.c 2021-11-16 15:28:05.451664358 +0000
--- src/version.c 2021-11-16 16:37:16.857714362 +0000
***************
*** 759,760 ****
--- 759,762 ----
{ /* Add new patch number below this line */
+ /**/
+ 3604,
/**/

--
With sufficient thrust, pigs fly just fine.
-- RFC 1925

/// Bram Moolenaar -- Br...@Moolenaar.net -- http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
Reply all
Reply to author
Forward
0 new messages