diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2010-01-13 18:22:35 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2010-01-13 18:22:35 +0100 |
commit | 25d9b91d94688b9b022224b95c06cbd4b75da085 (patch) | |
tree | 6d3b5dd63f3fab3fba018c73ae4bc64e5a38b150 /shell/ash.c | |
parent | 03d81ef43aca1808255d1a2a19ec394ed805eee8 (diff) | |
download | busybox-w32-25d9b91d94688b9b022224b95c06cbd4b75da085.tar.gz busybox-w32-25d9b91d94688b9b022224b95c06cbd4b75da085.tar.bz2 busybox-w32-25d9b91d94688b9b022224b95c06cbd4b75da085.zip |
shell/read: check that variable names are sane
function old new delta
shell_builtin_read 1000 1055 +55
parse_command 1460 1463 +3
builtin_umask 121 123 +2
is_well_formed_var_name 73 66 -7
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'shell/ash.c')
-rw-r--r-- | shell/ash.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/shell/ash.c b/shell/ash.c index 31dc59253..798d15a4c 100644 --- a/shell/ash.c +++ b/shell/ash.c | |||
@@ -1768,11 +1768,7 @@ static const struct { | |||
1768 | const char *text; | 1768 | const char *text; |
1769 | void (*func)(const char *) FAST_FUNC; | 1769 | void (*func)(const char *) FAST_FUNC; |
1770 | } varinit_data[] = { | 1770 | } varinit_data[] = { |
1771 | #if IFS_BROKEN | ||
1772 | { VSTRFIXED|VTEXTFIXED , defifsvar , NULL }, | 1771 | { VSTRFIXED|VTEXTFIXED , defifsvar , NULL }, |
1773 | #else | ||
1774 | { VSTRFIXED|VTEXTFIXED|VUNSET, "IFS\0" , NULL }, | ||
1775 | #endif | ||
1776 | #if ENABLE_ASH_MAIL | 1772 | #if ENABLE_ASH_MAIL |
1777 | { VSTRFIXED|VTEXTFIXED|VUNSET, "MAIL\0" , changemail }, | 1773 | { VSTRFIXED|VTEXTFIXED|VUNSET, "MAIL\0" , changemail }, |
1778 | { VSTRFIXED|VTEXTFIXED|VUNSET, "MAILPATH\0", changemail }, | 1774 | { VSTRFIXED|VTEXTFIXED|VUNSET, "MAILPATH\0", changemail }, |