aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--coreutils/sleep.c5
-rw-r--r--miscutils/bc.c1
2 files changed, 5 insertions, 1 deletions
diff --git a/coreutils/sleep.c b/coreutils/sleep.c
index 5c9cda9f0..7bfaab920 100644
--- a/coreutils/sleep.c
+++ b/coreutils/sleep.c
@@ -68,6 +68,11 @@ int sleep_main(int argc UNUSED_PARAM, char **argv)
68 if (!*argv) 68 if (!*argv)
69 bb_show_usage(); 69 bb_show_usage();
70 70
71 /* GNU sleep accepts "inf", "INF", "infinity" and "INFINITY" */
72 if (strncasecmp(argv[0], "inf", 3) == 0)
73 for (;;)
74 sleep(INT_MAX);
75
71#if ENABLE_FEATURE_FANCY_SLEEP 76#if ENABLE_FEATURE_FANCY_SLEEP
72# if ENABLE_FLOAT_DURATION 77# if ENABLE_FLOAT_DURATION
73 /* undo busybox.c setlocale */ 78 /* undo busybox.c setlocale */
diff --git a/miscutils/bc.c b/miscutils/bc.c
index 74884557a..bf174dafb 100644
--- a/miscutils/bc.c
+++ b/miscutils/bc.c
@@ -7407,4 +7407,3 @@ int dc_main(int argc UNUSED_PARAM, char **argv)
7407#endif 7407#endif
7408 7408
7409#endif // DC_BIG 7409#endif // DC_BIG
7410