From: Samuel Thibault Date: Thu, 22 Jul 2021 18:29:57 +0000 (+0000) Subject: hurd: Fix glob lstat compatibility X-Git-Tag: glibc-2.34~22 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9a7ab0769b295cbf5232140401742a8f34bda3de;p=thirdparty%2Fglibc.git hurd: Fix glob lstat compatibility 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. --- diff --git a/posix/glob-lstat-compat.c b/posix/glob-lstat-compat.c index 00d791d03b7..f91c7cc2d4e 100644 --- a/posix/glob-lstat-compat.c +++ b/posix/glob-lstat-compat.c @@ -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 diff --git a/sysdeps/gnu/glob-lstat-compat.c b/sysdeps/gnu/glob-lstat-compat.c index 128f84c07c7..caa485935e3 100644 --- a/sysdeps/gnu/glob-lstat-compat.c +++ b/sysdeps/gnu/glob-lstat-compat.c @@ -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