aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/os_unix.c
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2015-03-05 19:03:37 -0500
committerJustin M. Keyes <justinkz@gmail.com>2015-03-05 19:03:37 -0500
commita06186de41d4051c0fffbb936ae91238ee6c4169 (patch)
treeb0bb27feca64e5c1bff821225c642c42bd94122a /src/nvim/os_unix.c
parent0dd1ad0760ecdbfeef94da4ef33d71e66eab35b3 (diff)
parent117bf11e19bc0b23fb8baf79acc44ece9fcc8f2b (diff)
downloadrneovim-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.c7
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.