]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
hurd: Fix glob lstat compatibility
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Thu, 22 Jul 2021 18:29:57 +0000 (18:29 +0000)
committerSamuel Thibault <samuel.thibault@ens-lyon.org>
Thu, 22 Jul 2021 18:31:52 +0000 (20:31 +0200)
84f7ce84474c ("posix: Add glob64 with 64-bit time_t support") replaced
GLOB_NO_LSTAT with defining GLOB_LSTAT and GLOB_LSTAT64, but the posix
and gnu versions of the change were missing in the commit.

posix/glob-lstat-compat.c
sysdeps/gnu/glob-lstat-compat.c

index 00d791d03b744c8b3f34cc8427118dc037f3f806..f91c7cc2d4ea5ae35e61b2d3c3791ced45acb906 100644 (file)
@@ -28,7 +28,8 @@
 # define GLOB_ATTRIBUTE attribute_compat_text_section
 
 /* Avoid calling gl_lstat with GLOB_ALTDIRFUNC.  */
-# define GLOB_NO_LSTAT
+# define GLOB_LSTAT   gl_stat
+# define GLOB_LSTAT64 __stat64
 
 # include <posix/glob.c>
 
index 128f84c07c78103eda1dc5539784e13e4e5261aa..caa485935e396d6d03885f386f07360e1212fb22 100644 (file)
@@ -29,7 +29,8 @@
 #define GLOB_ATTRIBUTE attribute_compat_text_section
 
 /* Avoid calling gl_lstat with GLOB_ALTDIRFUNC.  */
-#define GLOB_NO_LSTAT
+#define GLOB_LSTAT   gl_stat
+#define GLOB_LSTAT64 __stat64
 
 #include <posix/glob.c>