aboutsummaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2017-07-03 01:22:13 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2017-07-03 01:22:13 +0200
commit4ee824f6ba3f35228f1c48e21681aa532a7dc23f (patch)
tree75011c43b93dc3deb5587f1a6b9424f3bef5dd03 /shell
parent48c803a2064d5ae24540760f13a21f092247bd82 (diff)
downloadbusybox-w32-4ee824f6ba3f35228f1c48e21681aa532a7dc23f.tar.gz
busybox-w32-4ee824f6ba3f35228f1c48e21681aa532a7dc23f.tar.bz2
busybox-w32-4ee824f6ba3f35228f1c48e21681aa532a7dc23f.zip
randomconfig fixes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'shell')
-rw-r--r--shell/hush.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/shell/hush.c b/shell/hush.c
index 125463a56..f5c1e5bc1 100644
--- a/shell/hush.c
+++ b/shell/hush.c
@@ -331,9 +331,9 @@
331/* Separate defines document which part of code implements what */ 331/* Separate defines document which part of code implements what */
332#define BASH_PATTERN_SUBST ENABLE_HUSH_BASH_COMPAT 332#define BASH_PATTERN_SUBST ENABLE_HUSH_BASH_COMPAT
333#define BASH_SUBSTR ENABLE_HUSH_BASH_COMPAT 333#define BASH_SUBSTR ENABLE_HUSH_BASH_COMPAT
334#define BASH_TEST2 ENABLE_HUSH_BASH_COMPAT
335#define BASH_SOURCE ENABLE_HUSH_BASH_COMPAT 334#define BASH_SOURCE ENABLE_HUSH_BASH_COMPAT
336#define BASH_HOSTNAME_VAR ENABLE_HUSH_BASH_COMPAT 335#define BASH_HOSTNAME_VAR ENABLE_HUSH_BASH_COMPAT
336#define BASH_TEST2 (ENABLE_HUSH_BASH_COMPAT && ENABLE_HUSH_TEST)
337 337
338 338
339/* Build knobs */ 339/* Build knobs */
@@ -1457,7 +1457,7 @@ static void restore_redirected_FILEs(void)
1457 fl = fl->next; 1457 fl = fl->next;
1458 } 1458 }
1459} 1459}
1460#if ENABLE_FEATURE_SH_STANDALONE 1460#if ENABLE_FEATURE_SH_STANDALONE && BB_MMU
1461static void close_all_FILE_list(void) 1461static void close_all_FILE_list(void)
1462{ 1462{
1463 struct FILE_list *fl = G.FILE_list; 1463 struct FILE_list *fl = G.FILE_list;
@@ -8575,8 +8575,9 @@ int hush_main(int argc, char **argv)
8575 optarg++; 8575 optarg++;
8576 empty_trap_mask = bb_strtoull(optarg, &optarg, 16); 8576 empty_trap_mask = bb_strtoull(optarg, &optarg, 16);
8577 if (empty_trap_mask != 0) { 8577 if (empty_trap_mask != 0) {
8578 int sig; 8578 IF_HUSH_TRAP(int sig;)
8579 install_special_sighandlers(); 8579 install_special_sighandlers();
8580# if ENABLE_HUSH_TRAP
8580 G_traps = xzalloc(sizeof(G_traps[0]) * NSIG); 8581 G_traps = xzalloc(sizeof(G_traps[0]) * NSIG);
8581 for (sig = 1; sig < NSIG; sig++) { 8582 for (sig = 1; sig < NSIG; sig++) {
8582 if (empty_trap_mask & (1LL << sig)) { 8583 if (empty_trap_mask & (1LL << sig)) {
@@ -8584,6 +8585,7 @@ int hush_main(int argc, char **argv)
8584 install_sighandler(sig, SIG_IGN); 8585 install_sighandler(sig, SIG_IGN);
8585 } 8586 }
8586 } 8587 }
8588# endif
8587 } 8589 }
8588# if ENABLE_HUSH_LOOPS 8590# if ENABLE_HUSH_LOOPS
8589 optarg++; 8591 optarg++;