This is an updated version of my previous set to fix multiple realpath implementation issues [1].
For this version I used the most recent gnulib version to sync, since it constains multiple issues and it fixes glibc BZ #10635, BZ #26592, and BZ #26241. However, the gnulib version shows some regressions on stdlib/tst-canon.c which I fixed on last patch (which also fixes glibc BZ #24970). This idea is to either apply this whole set or work with gnulib to fix the glibc regression on their side and sync a fully working implementation back to glibc. [1] https://patchwork.sourceware.org/project/glibc/list/?series=1062 *** BLURB HERE *** Adhemerval Zanella (5): stdlib: Sync canonicalize with gnulib [BZ #10635] [BZ #26592] [BZ #26241] Import idx.h from gnulib Import filename.h from gnulib stdlib: Add testcase fro BZ #26241 stdlib: Remove lstat usage from realpath [BZ #24970] include/filename.h | 110 +++++ include/idx.h | 113 +++++ include/scratch_buffer.h | 21 + stdlib/Makefile | 3 +- stdlib/canonicalize.c | 467 ++++++++++++------ stdlib/tst-canon-bz26341.c | 108 ++++ support/support_set_small_thread_stack_size.c | 12 +- support/xthread.h | 2 + 8 files changed, 676 insertions(+), 160 deletions(-) create mode 100644 include/filename.h create mode 100644 include/idx.h create mode 100644 stdlib/tst-canon-bz26341.c -- 2.25.1