]> Savannah Git Hosting - gnulib.git/commit
canonicalize: fix most of another EOVERFLOW issue
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 2 Dec 2020 22:25:42 +0000 (14:25 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 2 Dec 2020 22:39:30 +0000 (14:39 -0800)
commit14fa05f5d74b3b0923cfaccb11a2b365d61ffaa0
treeb034a313862f53aff58d1427844d4910ad9f5e17
parenta5c3b6cba6b0fe57bfeddc9e0fa56b25736e2eef
canonicalize: fix most of another EOVERFLOW issue

* lib/canonicalize.c (canonicalize_filename_mode):
Do not call stat if fewer than 20 symlinks have been traversed.
This avoids EOVERFLOW failure in the common case where there
are not that many symlinks, while continuing to catch loops
(or fail due to EOVERFLOW) in the unusual case when there
are many symlinks to traverse.
ChangeLog
lib/canonicalize.c