]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
nscd: Use 64 bit time_t on libc nscd routines (BZ# 29402)
authorAdhemerval Zanella Netto <adhemerval.zanella@linaro.org>
Wed, 26 Oct 2022 19:04:24 +0000 (16:04 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Fri, 9 Dec 2022 12:56:09 +0000 (09:56 -0300)
Although the nscd module is built with 64 bit time_t, the routines
linked direct to libc.so need to use the internal symbols.
Reviewed-by: DJ Delorie <dj@redhat.com>
nscd/nscd.h
nscd/nscd_gethst_r.c

index 368091aef8ec14392138f6ba87dc5e1aebc679fc..f15321585b379b1c494b5688578f22d11761408a 100644 (file)
@@ -65,7 +65,7 @@ typedef enum
 struct traced_file
 {
   /* Tracks the last modified time of the traced file.  */
-  time_t mtime;
+  __time64_t mtime;
   /* Support multiple registered files per database.  */
   struct traced_file *next;
   int call_res_init;
index 31d13580a11e64792d6f02ecd7437884d4436eb3..5958f181dbb1881f32f147f0fb4e5dd6570186ae 100644 (file)
@@ -112,7 +112,7 @@ __nscd_get_nl_timestamp (void)
   if (map == NULL
       || (map != NO_MAPPING
          && map->head->nscd_certainly_running == 0
-         && map->head->timestamp + MAPPING_TIMEOUT < time_now ()))
+         && map->head->timestamp + MAPPING_TIMEOUT < time64_now ()))
     map = __nscd_get_mapping (GETFDHST, "hosts", &__hst_map_handle.mapped);
 
   if (map == NO_MAPPING)