diff options
author | Denis Vlasenko | 2006-12-19 00:29:22 +0000 |
---|---|---|
committer | Denis Vlasenko | 2006-12-19 00:29:22 +0000 |
commit | 249fabf1a3ce08273d6bef2adbcd0910cc4dcb4a (patch) | |
tree | ec8143ae80ee51c6b1df792e3d7ed66014fdd5ab /editors/awk.c | |
parent | 15b213ef5a0834eb06a0183ab839ac883d829d5a (diff) | |
download | busybox-249fabf1a3ce08273d6bef2adbcd0910cc4dcb4a.zip busybox-249fabf1a3ce08273d6bef2adbcd0910cc4dcb4a.tar.gz |
Add option to disable command execution from vi & awk
Diffstat (limited to 'editors/awk.c')
-rw-r--r-- | editors/awk.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/editors/awk.c b/editors/awk.c index 9386f4e..147c621 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: |