Skip to content
This repository was archived by the owner on Sep 20, 2023. It is now read-only.

Commit 2073cee

Browse files
committed
More safety checks.
1 parent 38f46b6 commit 2073cee

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

autoload/syntastic/util.vim

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -377,6 +377,10 @@ function! s:_rmrf(what) " {{{2
377377
endif
378378

379379
if getftype(a:what) ==# 'dir'
380+
if filewritable(a:what) != 2
381+
return
382+
endif
383+
380384
for f in split(globpath(a:what, '*', 1), "\n")
381385
call s:_rmrf(f)
382386
endfor

plugin/syntastic.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ if has('reltime')
1919
lockvar! g:_SYNTASTIC_START
2020
endif
2121

22-
let g:_SYNTASTIC_VERSION = '3.5.0-147'
22+
let g:_SYNTASTIC_VERSION = '3.5.0-148'
2323
lockvar g:_SYNTASTIC_VERSION
2424

2525
" Sanity checks {{{1

0 commit comments

Comments
 (0)