aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/os/shell.c
diff options
context:
space:
mode:
authorBjörn Linse <bjorn.linse@gmail.com>2020-11-11 19:39:08 +0100
committerGitHub <noreply@github.com>2020-11-11 19:39:08 +0100
commit4875db2e56b395f47e3b9634b8c0a0e179fbe353 (patch)
tree756ad7dc5faa38b1c359bf92d8cf9426d13bf052 /src/nvim/os/shell.c
parent0a95549d66df63c06d775fcc329f7b63cbb46b2f (diff)
parent7777532cebcfa9abc5ab2c7beae77f386feed3ca (diff)
downloadrneovim-4875db2e56b395f47e3b9634b8c0a0e179fbe353.tar.gz
rneovim-4875db2e56b395f47e3b9634b8c0a0e179fbe353.tar.bz2
rneovim-4875db2e56b395f47e3b9634b8c0a0e179fbe353.zip
Merge pull request #11996 from georg3tom/remove_restricted
Removed restricted mode - Fix #11972
Diffstat (limited to 'src/nvim/os/shell.c')
-rw-r--r--src/nvim/os/shell.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/os/shell.c b/src/nvim/os/shell.c
index 6294d5e4e2..b5d890bf52 100644
--- a/src/nvim/os/shell.c
+++ b/src/nvim/os/shell.c
@@ -150,11 +150,11 @@ int os_expand_wildcards(int num_pat, char_u **pat, int *num_file,
return FAIL;
}
- // Don't allow the use of backticks in secure and restricted mode.
- if (secure || restricted) {
+ // Don't allow the use of backticks in secure.
+ if (secure) {
for (i = 0; i < num_pat; i++) {
if (vim_strchr(pat[i], '`') != NULL
- && (check_restricted() || check_secure())) {
+ && (check_secure())) {
return FAIL;
}
}