bug in x86/uclibc busybox touch

Denys Vlasenko vda.linux at googlemail.com
Wed Dec 29 01:45:21 UTC 2010


On Thursday 16 December 2010 13:54, Natanael Copa wrote:
> $ touch -t 0001010000 moo
> touch: invalid date '0001010000'
> 
> the above works with coreutils touch and interestingly enough, with
> x86_64 uclibc busybox

Because 1900-01-01 is a negative Unix time which doesn't fit
into 32-bit long.

"busybox touch -t 0112130000 file" works,
and sets t=-2147475600 (0x80001f70).

Previous day, -t 0112130000, doesn't.

-- 
vda


More information about the busybox mailing list