[Toybox] [PATCH] Reject invalid dates in date(1).
Rob Landley
rob at landley.net
Wed Jul 29 09:27:09 PDT 2015
On 07/28/2015 03:38 PM, enh wrote:
> (i haven't actually merged this in the Android tree, but my git-fu is
> too weak to get a diff of a new file otherwise.)
>
> Author: Elliott Hughes <enh at google.com>
> Date: Tue Jul 28 13:14:17 2015 -0700
>
> Reject invalid dates in date(1).
>
> Humans get upset when date(1) lets mktime(3) work out what the 99th day
> of the 99th month would be rather than rejecting the invalid date. For
> the subtly wrong cases, rather than get into the leap year business,
> let's rely on localtime_r(3).
>
> Bug: http://b/22788816
I don't suppose there's a better bug URL than that?
I note that people do actually use this behavior:
http://lists.busybox.net/pipermail/busybox/2005-June/048753.html
Rob
1438187229.0
More information about the Toybox
mailing list