aboutsummaryrefslogtreecommitdiff
path: root/elf/sln.c
diff options
context:
space:
mode:
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>2021-12-29 10:20:46 -0300
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2022-01-17 10:57:09 -0300
commit9fe6f6363886aae6b2b210cae3ed1f5921299083 (patch)
treed601541a207382c53aa7dfd6ccc256805ec34294 /elf/sln.c
parentcedd498dbc090e39a9b3224f4c53ea98da049f40 (diff)
downloadglibc-9fe6f6363886aae6b2b210cae3ed1f5921299083.tar
glibc-9fe6f6363886aae6b2b210cae3ed1f5921299083.tar.gz
glibc-9fe6f6363886aae6b2b210cae3ed1f5921299083.tar.bz2
glibc-9fe6f6363886aae6b2b210cae3ed1f5921299083.zip
elf: Fix 64 time_t support for installed statically binaries
The usage of internal static symbol for statically linked binaries does not work correctly for objects built with -D_TIME_BITS=64, since the internal definition does not provide the expected aliases. This patch makes it to use the default stat functions instead (which uses the default 64 time_t alias and types). Checked on i686-linux-gnu. Reviewed-by: Carlos O'Donell <carlos@redhat.com> Tested-by: Carlos O'Donell <carlos@redhat.com>
Diffstat (limited to 'elf/sln.c')
-rw-r--r--elf/sln.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/elf/sln.c b/elf/sln.c
index 00f8f7c8e8..5347338e91 100644
--- a/elf/sln.c
+++ b/elf/sln.c
@@ -153,11 +153,11 @@ makesymlinks (const char *file)
static int
makesymlink (const char *src, const char *dest)
{
- struct stat64 stats;
+ struct stat stats;
const char *error;
/* Destination must not be a directory. */
- if (lstat64 (dest, &stats) == 0)
+ if (lstat (dest, &stats) == 0)
{
if (S_ISDIR (stats.st_mode))
{