Removed restricted mode - Fix #11972

This commit is contained in:
georg3tom
2020-03-09 02:20:20 +05:30
committed by Björn Linse
parent 0a95549d66
commit 7777532ceb
15 changed files with 55 additions and 200 deletions

View File

@@ -1091,8 +1091,9 @@ char_u *get_cmd_output(char_u *cmd, char_u *infile, ShellOpts flags,
{
char_u *buffer = NULL;
if (check_restricted() || check_secure())
if (check_secure()) {
return NULL;
}
// get a name for the temp file
char_u *tempname = vim_tempname();