diff options
author | Björn Linse <bjorn.linse@gmail.com> | 2020-11-11 19:39:08 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-11 19:39:08 +0100 |
commit | 4875db2e56b395f47e3b9634b8c0a0e179fbe353 (patch) | |
tree | 756ad7dc5faa38b1c359bf92d8cf9426d13bf052 /src/nvim/os/shell.c | |
parent | 0a95549d66df63c06d775fcc329f7b63cbb46b2f (diff) | |
parent | 7777532cebcfa9abc5ab2c7beae77f386feed3ca (diff) | |
download | rneovim-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.c | 6 |
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; } } |