diff modules/canonicalize @ 9227:484ada1ccebf

canonicalize: Avoid a false-positive cycle failure. * modules/canonicalize (Depends-on): Add file-set and hash-triple. Sort. Remove cycle-check. * lib/canonicalize.c: Include file-set.h and hash-triple.h, not cycle-check.h. (seen_triple): New function. (canonicalize_filename_mode): Use it instead of cycle-check. * tests/test-canonicalize.c: Add a test for this bug. * tests/test-canonicalize.sh: Set up and run the test.
author Jim Meyering <jim@meyering.net>
date Mon, 24 Sep 2007 13:39:37 +0200
parents dfa92826de1e
children 3cb22d0bfd0b
line wrap: on
line diff
--- a/modules/canonicalize
+++ b/modules/canonicalize
@@ -8,12 +8,13 @@
 m4/canonicalize.m4
 
 Depends-on:
-cycle-check
+areadlink-with-size
+file-set
 filenamecat
+hash-triple
 sys_stat
 xalloc
 xgetcwd
-areadlink-with-size
 
 configure.ac:
 AC_FUNC_CANONICALIZE_FILE_NAME