Files
sed/sed
Paul Eggert 40dba28572 sed: fix infloop with symlink cycles
* bootstrap.conf (gnulib_modules):
Add eloop-threshold, idx, minmax, readlink.
* configure.ac: Do not check for lstat; no longer needed.
(ENABLE_FOLLOW_SYMLINKS): Remove; all uses removed.
(TEST_SYMLINKS): Depend only on readlink.
* sed/utils.c: Include eloop-threshold.h, idx.h, minmax.h.
(SSIZE_IDX_MAX): New macro.
(follow_symlink): Rewrite to not loop when given a symlink cycle.
Do not use lstat, since readlink suffices.  Use just one memory
buffer, not two; this simplifies memory management.
* testsuite/follow-symlinks.sh: Adjust diagnostics to
to match revised behavior.  Test for symlink loops.
2022-07-03 18:17:41 -05:00
..
2022-01-01 15:00:18 -08:00
2022-01-01 15:00:18 -08:00
2022-07-02 17:06:39 -05:00
2022-01-01 15:00:18 -08:00
2022-01-01 15:00:18 -08:00
2022-01-01 15:00:18 -08:00
2022-07-03 18:17:41 -05:00
2022-07-02 17:06:39 -05:00
2022-07-03 18:17:41 -05:00
2022-07-02 17:06:39 -05:00