]> git.ipfire.org Git - thirdparty/krb5.git/commit
Improve MSLSA ccache timestamp conversion 1469/head
authorGreg Hudson <ghudson@mit.edu>
Sun, 9 Nov 2025 06:58:56 +0000 (01:58 -0500)
committerGreg Hudson <ghudson@mit.edu>
Fri, 21 Nov 2025 01:03:36 +0000 (20:03 -0500)
commit986582e2e1f78b9053348b7504b8b725f7e9396c
tree2df75923b4fcb7fb5036c45a354ddbce5bbb10c2
parentbc9c596178a5ef3f585dece00fd2a51a6ddfa6a2
Improve MSLSA ccache timestamp conversion

FileTimeToUnixTime() can yield the wrong answer in the presence of a
TZ environment variable, because FileTimeToLocalFileTime() ignores TZ
and mktime() assumes UTC-8 if it cannot parse the TZ value.  (Reported
by Robert Crowston.)

Replace the function with a simple arithmetic conversion that does not
depend on time zones.

ticket: 9188
tags: pullup
target_version: 1.22-next
src/lib/krb5/ccache/cc_mslsa.c