aboutsummaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2011-05-12 09:50:12 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2011-05-12 09:50:12 +0200
commit0c40a731e3fcebe49f5b1636011b20cb316aeb0d (patch)
treef2426ffb8181b6751470bdc98673a7eaefb2850a /shell
parent0a8971d1121c7312d51febe7075e9b8115cc1c66 (diff)
downloadbusybox-w32-0c40a731e3fcebe49f5b1636011b20cb316aeb0d.tar.gz
busybox-w32-0c40a731e3fcebe49f5b1636011b20cb316aeb0d.tar.bz2
busybox-w32-0c40a731e3fcebe49f5b1636011b20cb316aeb0d.zip
hush: add forgotten {} in multi-statement if.
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'shell')
-rw-r--r--shell/hush.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/shell/hush.c b/shell/hush.c
index cdd4be4e3..89a13feb8 100644
--- a/shell/hush.c
+++ b/shell/hush.c
@@ -1489,15 +1489,16 @@ static sighandler_t pick_sighandler(unsigned sig)
1489 handler = sigexit; 1489 handler = sigexit;
1490#endif 1490#endif
1491 /* sig has special handling? */ 1491 /* sig has special handling? */
1492 else if (G.special_sig_mask & sigmask) 1492 else if (G.special_sig_mask & sigmask) {
1493 handler = record_pending_signo; 1493 handler = record_pending_signo;
1494 /* TTIN/TTOU/TSTS can't be set to record_pending_signo 1494 /* TTIN/TTOU/TSTP can't be set to record_pending_signo
1495 * in order to ignore them: they will be raised 1495 * in order to ignore them: they will be raised
1496 * in an endless loop when we try to do some 1496 * in an endless loop when we try to do some
1497 * terminal ioctls! We do have to _ignore_ these. 1497 * terminal ioctls! We do have to _ignore_ these.
1498 */ 1498 */
1499 if (SPECIAL_JOBSTOP_SIGS & sigmask) 1499 if (SPECIAL_JOBSTOP_SIGS & sigmask)
1500 handler = SIG_IGN; 1500 handler = SIG_IGN;
1501 }
1501 } 1502 }
1502 return handler; 1503 return handler;
1503} 1504}