]> git.ipfire.org Git - thirdparty/krb5.git/commit
Read GSS configuration files with mtime 0 1249/head
authorSimo Sorce <simo@redhat.com>
Thu, 19 May 2022 16:27:40 +0000 (12:27 -0400)
committerGreg Hudson <ghudson@mit.edu>
Tue, 24 May 2022 20:22:32 +0000 (16:22 -0400)
commit2b34a007461065e0cab4490dfe1ae5ddd10da67b
treef108fc8080ce0c9d6752ad7071f182d5f33940ac
parent3bb429b1d61dcd017537e27d7572dcf9114a5613
Read GSS configuration files with mtime 0

There is at least one case (with flatpaks) where configuration files
in the special read-only /etc all have an mtime of 0.  Using an
initial last modified time of 0 in g_initialize.c causes these files
to never be read.

Change the initial high value to the be the "invalid" value
(time_t)-1.  Since the C and POSIX standards do not require time_t to
be signed, special-case the checks in load_if_changed() and
updateMechList() to treat all mod times as newer than -1.

[ghudson@mit.edu: edited commit message; slightly modified approach]

ticket: 9060 (new)
target_version: 1.20
tags: pullup
src/lib/gssapi/mechglue/g_initialize.c