From: Jim Meyering Date: Wed, 7 Jul 2004 15:54:54 +0000 (+0000) Subject: *** empty log message *** X-Git-Tag: v5.3.0~1134 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2aa1f2d16babc2b2b468fa503b757adf8e87336c;p=thirdparty%2Fcoreutils.git *** empty log message *** --- diff --git a/lib/ChangeLog b/lib/ChangeLog index b3f13044ef..280ccbfcd8 100644 --- a/lib/ChangeLog +++ b/lib/ChangeLog @@ -1,5 +1,16 @@ 2004-07-07 Jim Meyering + Don't infloop when MAXSYMLINKS is not defined. + Detect symlink loops much earlier (albeit lazily) on systems + with MAXSYMLINKS defined to a large value. + + * canonicalize.c: Include "cycle-check.h". + (canonicalize_filename_mode): Don't try to detect loops by counting + symlink-hops. Instead, use the cycle-check module. + + * cycle-check.h: Include stdbool.h. + Forward-declare `struct stat'. + * canonicalize.c (canonicalize_filename_mode): Remove do-while(0) loop. Replace each corresponding `break' stmt with `continue'.