sys/stat.h - incorrect macro definition
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
glibc (Ubuntu) |
New
|
Medium
|
Unassigned |
Bug Description
/usr/include/
# else
# ifdef __REDIRECT_NTH
extern int __REDIRECT_NTH (stat64, (const char *__restrict __file,
__nonnull ((1, 2));
extern int __REDIRECT_NTH (fstat64, (int __fd, struct stat64 *__buf),
__nonnull ((2));
# else
# define stat64 __stat64_time64
# define fstat64 __fstat64_time <<< DOES NOT LOOK RIGHT
# endif
# endif
#endif
Suggest:
--- a/stat.h 2022-10-17 21:37:26.110226859 +0100
+++ b/stat.h 2022-10-17 21:39:50.182976059 +0100
@@ -251,7 +251,7 @@
__nonnull ((2));
# else
# define stat64 __stat64_time64
-# define fstat64 __fstat64_time
+# define fstat64 __fstat64_time64
# endif
# endif
#endif
ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: libc6-dev 2.35-0ubuntu3.1
ProcVersionSign
Uname: Linux 5.15.0-50-generic x86_64
NonfreeKernelMo
ApportVersion: 2.20.11-0ubuntu82.1
Architecture: amd64
CasperMD5CheckR
CurrentDesktop: Unity
Date: Mon Oct 17 21:36:42 2022
ProcEnviron:
TERM=xterm-
PATH=(custom, no user)
XDG_RUNTIME_
LANG=en_GB.UTF-8
SHELL=/bin/bash
SourcePackage: glibc
UpgradeStatus: No upgrade log present (probably fresh install)
modified.
mtime.conffile.
Hi,
Thank you for your report. We usually don't fix this kind of issue before it goes through upstream, so could you report this on the upstream bug tracker or mailing list, along with your patch?
When done so, please give us a link to help us track the upstream discussion :)
Thanks in advance.