about summary refs log tree commit diff
path: root/elf/readlib.c
diff options
context:
space:
mode:
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>2022-01-17 10:56:58 -0300
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2022-01-17 10:56:58 -0300
commitcedd498dbc090e39a9b3224f4c53ea98da049f40 (patch)
tree5aa2ccfdb9af3a16eac4818d83988f172dd89fd2 /elf/readlib.c
parentf545ad4928fa1f27a3075265182b38a4f939a5f7 (diff)
downloadglibc-cedd498dbc090e39a9b3224f4c53ea98da049f40.tar.gz
glibc-cedd498dbc090e39a9b3224f4c53ea98da049f40.tar.xz
glibc-cedd498dbc090e39a9b3224f4c53ea98da049f40.zip
Revert "elf: Fix 64 time_t support for installed statically binaries"
This reverts commit 0b8e83eb1455f3c0332eeb1f96fbc262fbd054e0.
Diffstat (limited to 'elf/readlib.c')
-rw-r--r--elf/readlib.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/elf/readlib.c b/elf/readlib.c
index 3651dcdd8e..05c157762a 100644
--- a/elf/readlib.c
+++ b/elf/readlib.c
@@ -74,10 +74,10 @@ int
 process_file (const char *real_file_name, const char *file_name,
 	      const char *lib, int *flag, unsigned int *osversion,
 	      unsigned int *isa_level, char **soname, int is_link,
-	      struct stat *stat_buf)
+	      struct stat64 *stat_buf)
 {
   FILE *file;
-  struct stat statbuf;
+  struct stat64 statbuf;
   void *file_contents;
   int ret;
   ElfW(Ehdr) *elf_header;
@@ -97,7 +97,7 @@ process_file (const char *real_file_name, const char *file_name,
       return 1;
     }
 
-  if (fstat (fileno (file), &statbuf) < 0)
+  if (fstat64 (fileno (file), &statbuf) < 0)
     {
       error (0, 0, _("Cannot fstat file %s.\n"), file_name);
       fclose (file);