diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2015-03-05 19:03:37 -0500 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2015-03-05 19:03:37 -0500 |
commit | a06186de41d4051c0fffbb936ae91238ee6c4169 (patch) | |
tree | b0bb27feca64e5c1bff821225c642c42bd94122a /src/nvim/os_unix.c | |
parent | 0dd1ad0760ecdbfeef94da4ef33d71e66eab35b3 (diff) | |
parent | 117bf11e19bc0b23fb8baf79acc44ece9fcc8f2b (diff) | |
download | rneovim-a06186de41d4051c0fffbb936ae91238ee6c4169.tar.gz rneovim-a06186de41d4051c0fffbb936ae91238ee6c4169.tar.bz2 rneovim-a06186de41d4051c0fffbb936ae91238ee6c4169.zip |
Merge #2011 'Macro cleanup'
Diffstat (limited to 'src/nvim/os_unix.c')
-rw-r--r-- | src/nvim/os_unix.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/nvim/os_unix.c b/src/nvim/os_unix.c index 87ef1220e7..5d8b4ad26a 100644 --- a/src/nvim/os_unix.c +++ b/src/nvim/os_unix.c @@ -317,11 +317,10 @@ int mch_expand_wildcards(int num_pat, char_u **pat, int *num_file, return OK; } -# ifdef HAVE_SANDBOX - /* Don't allow any shell command in the sandbox. */ - if (sandbox != 0 && check_secure()) + // Don't allow any shell command in the sandbox. + if (sandbox != 0 && check_secure()) { return FAIL; -# endif + } /* * Don't allow the use of backticks in secure and restricted mode. |