Bug 29212

Summary: gconv_parseconfdir is not y2038 aware
Product: glibc Reporter: Adhemerval Zanella <adhemerval.zanella>
Component: libcAssignee: Adhemerval Zanella <adhemerval.zanella>
Status: RESOLVED DUPLICATE    
Severity: normal CC: drepper.fsp
Priority: P2    
Version: 2.34   
Target Milestone: 2.36   
Host: Target:
Build: Last reconfirmed:

Description Adhemerval Zanella 2022-05-31 15:41:48 UTC
It still uses non-y2038 internal interfaces:

157           if (len > strlen (suffix)
158               && strcmp (ent->d_name + len - strlen (suffix), suffix) == 0)
159             {
160               char *conf;
161               struct stat64 st;
162               if (asprintf (&conf, "%s/%s", buf, ent->d_name) < 0)
163                 continue;
164 
165               if (ent->d_type != DT_UNKNOWN
166                   || (lstat64 (conf, &st) != -1 && S_ISREG (st.st_mode)))
167                 found |= read_conf_file (conf, dir, dir_len);
168
Comment 1 Adhemerval Zanella 2022-06-01 16:28:29 UTC
Fixed on 2.36.
Comment 2 Adhemerval Zanella 2022-06-01 17:21:35 UTC

*** This bug has been marked as a duplicate of bug 29213 ***