bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 2/5] posix: Sync glob code with gnulib


From: Paul Eggert
Subject: Re: [PATCH 2/5] posix: Sync glob code with gnulib
Date: Thu, 31 Dec 2020 13:47:33 -0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.5.0

On 12/30/20 12:15 PM, Adhemerval Zanella wrote:
It sync with gnulib commit 43ee1a6bf and fixes and use-after-free
bug (gnulib commit 717766da8926e36).  The main change over gnulib
is:

--- posix/glob.c
+++ lib/glob.c
@@ -59,6 +59,12 @@
  # define readdir(str) __readdir64 (str)
  # define getpwnam_r(name, bufp, buf, len, res) \
      __getpwnam_r (name, bufp, buf, len, res)
+# ifndef __lstat64
+#  define __lstat64(fname, buf) __lxstat64 (_STAT_VER, fname, buf)
+# endif
+# ifndef __stat64
+#  define __stat64(fname, buf) __xstat64 (_STAT_VER, fname, buf)
+# endif
  # define struct_stat64          struct stat64
  # define FLEXIBLE_ARRAY_MEMBER
  # include <shlib-compat.h>


Thanks, the code patch looks fine. You can now simplify its commit message because I just now propagated the above fix into Gnulib, by installing the attached patch into Gnulib.

Attachment: 0001-glob-merge-proposed-glibc-changes.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]