about summary refs log tree commit diff
path: root/elf/chroot_canon.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/chroot_canon.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/chroot_canon.c')
-rw-r--r--elf/chroot_canon.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/elf/chroot_canon.c b/elf/chroot_canon.c
index e5d7518266..c7f12ca112 100644
--- a/elf/chroot_canon.c
+++ b/elf/chroot_canon.c
@@ -67,7 +67,7 @@ chroot_canon (const char *chroot, const char *name)
 
   for (start = end = name; *start; start = end)
     {
-      struct stat st;
+      struct stat64 st;
 
       /* Skip sequence of multiple path-separators.  */
       while (*start == '/')
@@ -114,7 +114,7 @@ chroot_canon (const char *chroot, const char *name)
 	  dest = mempcpy (dest, start, end - start);
 	  *dest = '\0';
 
-	  if (lstat (rpath, &st) < 0)
+	  if (lstat64 (rpath, &st) < 0)
 	    {
 	      if (*end == '\0')
 		goto done;