aboutsummaryrefslogtreecommitdiff
path: root/editors/awk.c
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2006-12-19 00:29:22 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2006-12-19 00:29:22 +0000
commit249fabf1a3ce08273d6bef2adbcd0910cc4dcb4a (patch)
treeec8143ae80ee51c6b1df792e3d7ed66014fdd5ab /editors/awk.c
parent15b213ef5a0834eb06a0183ab839ac883d829d5a (diff)
downloadbusybox-249fabf1a3ce08273d6bef2adbcd0910cc4dcb4a.tar.gz
Add option to disable command execution from vi & awk
Diffstat (limited to 'editors/awk.c')
-rw-r--r--editors/awk.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/editors/awk.c b/editors/awk.c
index 9386f4ec0..147c621ab 100644
--- a/editors/awk.c
+++ b/editors/awk.c
@@ -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: