diff options
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. |