Mercurial > hg > octave-kai > gnulib-hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
9226:b7de93942166 | 9227:484ada1ccebf |
---|---|
6 lib/canonicalize.c | 6 lib/canonicalize.c |
7 lib/pathmax.h | 7 lib/pathmax.h |
8 m4/canonicalize.m4 | 8 m4/canonicalize.m4 |
9 | 9 |
10 Depends-on: | 10 Depends-on: |
11 cycle-check | 11 areadlink-with-size |
12 file-set | |
12 filenamecat | 13 filenamecat |
14 hash-triple | |
13 sys_stat | 15 sys_stat |
14 xalloc | 16 xalloc |
15 xgetcwd | 17 xgetcwd |
16 areadlink-with-size | |
17 | 18 |
18 configure.ac: | 19 configure.ac: |
19 AC_FUNC_CANONICALIZE_FILE_NAME | 20 AC_FUNC_CANONICALIZE_FILE_NAME |
20 gl_MODULE_INDICATOR([canonicalize]) | 21 gl_MODULE_INDICATOR([canonicalize]) |
21 | 22 |