Add option to disable command execution from vi & awk

This commit is contained in:
Denis Vlasenko
2006-12-19 00:29:22 +00:00
parent 15b213ef5a
commit 249fabf1a3
3 changed files with 16 additions and 4 deletions

View File

@@ -2378,7 +2378,8 @@ re_cont:
case F_sy:
fflush(NULL);
R.d = (L.s && *L.s) ? (system(L.s) >> 8) : 0;
R.d = (ENABLE_FEATURE_ALLOW_EXEC && L.s && *L.s)
? (system(L.s) >> 8) : 0;
break;
case F_ff: