From a70591fa764f893e1111704778dca7cd171476e3 Mon Sep 17 00:00:00 2001 From: Jacob Zimmerman Date: Sun, 9 Jul 2017 02:13:14 -0500 Subject: [PATCH] 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. --- autoload/ale/path.vim | 1 + 1 file changed, 1 insertion(+) diff --git a/autoload/ale/path.vim b/autoload/ale/path.vim index 5c8cf74e..9ac3d8f2 100644 --- a/autoload/ale/path.vim +++ b/autoload/ale/path.vim @@ -73,6 +73,7 @@ endfunction function! ale#path#IsTempName(filename) abort let l:prefix_list = [ \ $TMPDIR, + \ resolve($TMPDIR), \ '/run/user', \]