mirror of
https://github.com/neovim/neovim.git
synced 2025-09-17 16:58:17 +00:00
Macro cleanup: HAVE_SANDBOX
This commit is contained in:

committed by
Justin M. Keyes

parent
0dd1ad0760
commit
357583ff8c
@@ -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.
|
||||
|
Reference in New Issue
Block a user