Subject: bug#7317: Bug in SLEEP command

From: Андрей Передрий <[email-masked]>
Date: Tue, 02 Nov 2010 17:46:37 +0200

Hello guys!

I found a bug in 'sleep' command.
Please see below:

# date
Tue Oct  5 14:12:11 EEST 2010
[root@gate ~]# sleep 36500d ; date
Sat Oct 30 10:38:44 EEST 2010
[root@gate ~]#

As you can see - 'sleep' was terminated by himself after 24 days, 20 hours, 26 minutes and 33 seconds.
24*24*3600 + 20*3600 + 26*60 + 33 = 2073600 + 72000 + 1560 + 33 = 2147193 seconds
It seems like overflow.
coreutils 6.10-6
Debian 5.0.6  

--
A.P.