canonicalize: Avoid a false-positive cycle failure.
authorJim Meyering <jim@meyering.net>
Mon, 24 Sep 2007 11:39:37 +0000 (13:39 +0200)
committerJim Meyering <jim@meyering.net>
Thu, 27 Sep 2007 08:49:41 +0000 (10:49 +0200)
commitcbbc0892dc8607978ec55acdd8ef3a124df1ca1f
treec21673fbe1d7df8bf87a0726a60d8551c6ad2509
parent024eeefda59f214eeaac745db9f3e982b9a726c3
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.
ChangeLog
lib/canonicalize.c
modules/canonicalize
tests/test-canonicalize.c
tests/test-canonicalize.sh