Commit Graph
2 Commits
Author SHA1 Message Date
Benjamin Peterson dbcfb16e43 always reset DST rules during tzset
do_tzset() did't always reset the DST transition rules r0 and r1. That
means the rules from older TZ settings could leak into newer ones.
2018-09-15 13:22:12 -04:00
Benjamin Peterson c84971995b improve error handling of ttyname_r and isatty
POSIX allows ttyname(_r) and isatty to return EBADF if passed file
descriptor is invalid.

maintainer's note: these are optional ("may fail") errors, but it's
non-conforming for ttyname_r to return ENOTTY when it failed for a
different reason.
2018-09-15 01:58:03 -04:00