This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH v4] Ensure mktime sets errno on error (bug 23789)


On 11/6/18 12:41 PM, Albert ARIBAUD wrote:
Issue is that __mktime_internal exited through

     else if (--remaining_probes == 0)
       return -1;

with errno never set.

Any idea why?

Either localtime_r is failing without setting errno so the bug is in localtime_r, or localtime_r never fails and so never sets errno so the bug is in mktime. Can you check which of these is happening?


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]