Bug 29657 - Incorrect struct stat for 64-bit time on linux/generic platforms
Summary: Incorrect struct stat for 64-bit time on linux/generic platforms
Status: RESOLVED FIXED
Alias: None
Product: glibc
Classification: Unclassified
Component: libc (show other bugs)
Version: 2.36
: P2 normal
Target Milestone: 2.37
Assignee: Adhemerval Zanella
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-10-07 00:24 UTC by Joseph Myers
Modified: 2022-10-25 19:07 UTC (History)
2 users (show)

See Also:
Host: csky*-linux* nios2*-linux*
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Joseph Myers 2022-10-07 00:24:22 UTC
sysdeps/unix/sysv/linux/generic/bits/struct_stat.h is missing the conditionals to use bits/struct_stat_time64_helper.h in the __USE_TIME_BITS64 case.  This means that platforms using linux/generic but with __TIMESIZE == 32 (i.e. csky and nios2, I think) get the wrong version of struct stat for 64-bit time, since the actual function implementations use struct __stat64_t64 which does use bits/struct_stat_time64_helper.h, so the type declared in the installed headers is inconsistent with the implementation.
Comment 1 Adhemerval Zanella 2022-10-25 19:07:32 UTC
Fixed on 2.37.