aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/os_unix.c
diff options
context:
space:
mode:
authorMichael Reed <m.reed@mykolab.com>2015-02-03 20:07:00 -0500
committerJustin M. Keyes <justinkz@gmail.com>2015-03-05 19:03:34 -0500
commit357583ff8ca4aaaeef656a5c4856ee23b0d7e98e (patch)
tree3185d4019840390d64773657643f236af6a74e73 /src/nvim/os_unix.c
parent0dd1ad0760ecdbfeef94da4ef33d71e66eab35b3 (diff)
downloadrneovim-357583ff8ca4aaaeef656a5c4856ee23b0d7e98e.tar.gz
rneovim-357583ff8ca4aaaeef656a5c4856ee23b0d7e98e.tar.bz2
rneovim-357583ff8ca4aaaeef656a5c4856ee23b0d7e98e.zip
Macro cleanup: HAVE_SANDBOX
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.