summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/eval.c6
-rw-r--r--src/version.c2
2 files changed, 8 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()");
diff --git a/src/version.c b/src/version.c
index 7fe531d9b..8e6c5504e 100644
--- a/src/version.c
+++ b/src/version.c
@@ -667,6 +667,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 235,
+/**/
234,
/**/
233,