diff options
Diffstat (limited to 'src/eval.c')
-rw-r--r-- | src/eval.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/eval.c b/src/eval.c index cfb347616..0fd774496 100644 --- a/src/eval.c +++ b/src/eval.c @@ -15598,6 +15598,9 @@ f_system(argvars, rettv) int err = FALSE; FILE *fd; + if (check_restricted() || check_secure()) + return; + if (argvars[1].v_type != VAR_UNKNOWN) { /* @@ -16431,6 +16434,9 @@ f_writefile(argvars, rettv) int ret = 0; int c; + if (check_restricted() || check_secure()) + return; + if (argvars[0].v_type != VAR_LIST) { EMSG2(_(e_listarg), "writefile()"); |