aboutsummaryrefslogtreecommitdiff
path: root/coreutils/sleep.c
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2023-04-17 07:32:52 +0100
committerRon Yorston <rmy@pobox.com>2023-04-17 07:32:52 +0100
commit8cdeb571cfbf3bb6edc44779e46537b072b8cd08 (patch)
tree9f3ad1d205418197bc53348b61f702602229a90d /coreutils/sleep.c
parent41827dd448c001b52b4f0e591ea605cb5de1d230 (diff)
parentd2b81b3dc2b31d32e1060d3ea8bd998d30a37d8a (diff)
downloadbusybox-w32-8cdeb571cfbf3bb6edc44779e46537b072b8cd08.tar.gz
busybox-w32-8cdeb571cfbf3bb6edc44779e46537b072b8cd08.tar.bz2
busybox-w32-8cdeb571cfbf3bb6edc44779e46537b072b8cd08.zip
Merge branch 'busybox' into merge
Diffstat (limited to 'coreutils/sleep.c')
-rw-r--r--coreutils/sleep.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/coreutils/sleep.c b/coreutils/sleep.c
index 667db558d..a0cee5a4a 100644
--- a/coreutils/sleep.c
+++ b/coreutils/sleep.c
@@ -74,7 +74,8 @@ int sleep_main(int argc UNUSED_PARAM, char **argv)
74 ++argv; 74 ++argv;
75 if (!*argv) { 75 if (!*argv) {
76 /* Without this, bare "sleep" in ash shows _ash_ --help */ 76 /* Without this, bare "sleep" in ash shows _ash_ --help */
77 if (ENABLE_ASH_SLEEP && applet_name[0] != 's') { 77 /* (ash can be the "sh" applet as well, so check 2nd char) */
78 if (ENABLE_ASH_SLEEP && applet_name[1] != 'l') {
78 bb_simple_error_msg("sleep: missing operand"); 79 bb_simple_error_msg("sleep: missing operand");
79 return EXIT_FAILURE; 80 return EXIT_FAILURE;
80 } 81 }