[Toybox] [PATCH] Fix touch(1) date parsing on tzcode-derived systems.

enh enh at google.com
Fri Jul 29 13:19:41 PDT 2016


The IANA tzcode implementation of mktime (used on Android and BSDs) sets
errno in some cases where it doesn't return -1 to indicate failure, so the
existing test always failed on those systems.

I don't think glibc ever sets errno (which is fine by ISO C, but not POSIX).

Other uses of mktime in toybox are already fine. This one would have been
caught by the existing tests if I was running them on the device :-(
---
 toys/posix/touch.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Fix-touch-1-date-parsing-on-tzcode-derived-systems.patch
Type: text/x-patch
Size: 1128 bytes
Desc: not available
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20160729/700b1eff/attachment-0003.bin>


More information about the Toybox mailing list