view 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 source

Description:
Return the canonical absolute name of a given file.

Files:
lib/canonicalize.h
lib/canonicalize.c
lib/pathmax.h
m4/canonicalize.m4

Depends-on:
areadlink-with-size
file-set
filenamecat
hash-triple
sys_stat
xalloc
xgetcwd

configure.ac:
AC_FUNC_CANONICALIZE_FILE_NAME
gl_MODULE_INDICATOR([canonicalize])

Makefile.am:

Include:
"canonicalize.h"

License:
GPL

Maintainer:
Jim Meyering