Correctly resolve temp files on macOS
On macOS, the `$TMPDIR` is in `/var`. However, `/var -> /private/var`. This means that fully resolved temp filenames weren't always getting checked against the proper prefix. This was affecting some of the Haskell plugins, though I'm sure it could have affected any program that resolved past the generated `$TMPDIR/foo` and wound up at a different filename.
This commit is contained in:
parent
ab47011ef2
commit
a70591fa76
1 changed files with 1 additions and 0 deletions
|
@ -73,6 +73,7 @@ endfunction
|
||||||
function! ale#path#IsTempName(filename) abort
|
function! ale#path#IsTempName(filename) abort
|
||||||
let l:prefix_list = [
|
let l:prefix_list = [
|
||||||
\ $TMPDIR,
|
\ $TMPDIR,
|
||||||
|
\ resolve($TMPDIR),
|
||||||
\ '/run/user',
|
\ '/run/user',
|
||||||
\]
|
\]
|
||||||
|
|
||||||
|
|
Reference in a new issue