diff options
Diffstat (limited to 'shell/ash.c')
-rw-r--r-- | shell/ash.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/shell/ash.c b/shell/ash.c index 10217fe2f..95928e992 100644 --- a/shell/ash.c +++ b/shell/ash.c | |||
@@ -2036,7 +2036,7 @@ static int is_safe_applet(char *name) | |||
2036 | { | 2036 | { |
2037 | /* It isn't a bug to have non-existent applet here... */ | 2037 | /* It isn't a bug to have non-existent applet here... */ |
2038 | /* ...just a waste of space... */ | 2038 | /* ...just a waste of space... */ |
2039 | static const char safe_applets[][8] = { | 2039 | static const char safe_applets[][8] = { |
2040 | "[" | 2040 | "[" |
2041 | USE_AWK (, "awk" ) | 2041 | USE_AWK (, "awk" ) |
2042 | USE_CAT (, "cat" ) | 2042 | USE_CAT (, "cat" ) |
@@ -3763,7 +3763,7 @@ tryexec(char *cmd, char **argv, char **envp) | |||
3763 | struct BB_applet *a; | 3763 | struct BB_applet *a; |
3764 | int argc = 0; | 3764 | int argc = 0; |
3765 | char **c; | 3765 | char **c; |
3766 | 3766 | ||
3767 | if (strchr(cmd, '/') == NULL | 3767 | if (strchr(cmd, '/') == NULL |
3768 | && (a = find_applet_by_name(cmd)) != NULL | 3768 | && (a = find_applet_by_name(cmd)) != NULL |
3769 | && is_safe_applet(cmd) | 3769 | && is_safe_applet(cmd) |