summaryrefslogtreecommitdiff
path: root/lib/canonicalize.c
AgeCommit message (Collapse)Author
2005-07-02Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.Jim Meyering
2005-06-02Don't use "path" or "filename" to mean "file name"Paul Eggert
in comments or local variable names.
2005-05-18Include canonicalize.h first, to test interface.Paul Eggert
Include <stddef.h> unconditionally, since we assume C89 now. All uses of PTR_INT_TYPE replaced by ptrdiff_t.
2005-05-14Update FSF postal mail address.Jim Meyering
2005-03-23Remove duplicate `#include "stat-macros.h"'.Jim Meyering
2004-08-02(errno): Remove decl; we now assume C89 or better.Paul Eggert
2004-07-07Don't infloop when MAXSYMLINKS is not defined.Jim Meyering
Detect symlink loops much earlier (albeit lazily) on systems with MAXSYMLINKS defined to a large value. Include "cycle-check.h". (canonicalize_filename_mode): Don't try to detect loops by counting symlink-hops. Instead, use the cycle-check module.
2004-07-07(canonicalize_filename_mode): Remove do-while(0) loop.Jim Meyering
Replace each corresponding `break' stmt with `continue'.
2004-07-06Include "stat-macros.h".Jim Meyering
(canonicalize_filename_mode): Remove #ifdef S_ISLNK, now that S_ISLNK is guaranteed to be defined (via stat-macros.h).
2004-07-06Include "file-type.h".Jim Meyering
(canonicalize_filename_mode): New function, based on canonicalize_file_name, supports three canonicalize modes. (canonicalize_file_name) [!HAVE_CANONICALIZE_FILE_NAME && !HAVE_RESOLVEPATH]: Use it.
2004-07-04(canonicalize_file_name): Assume that path_concat never returns NULL.Jim Meyering
2004-06-19Remove all S_IS* and S_IF* definitions.Jim Meyering
Instead, just include "stat-macros.h".
2004-06-01(canonicalize_file_name): Update use of xreadlink.Jim Meyering
2004-03-29[HAVE_UNISTD_H]: Include <unistd.h>, for resolvepath declaration.Jim Meyering
2003-05-02(canonicalize_file_name) [!HAVE_RESOLVEPATH]:Jim Meyering
A memory-allocation error could result in heap corruption. Fix it by also updating `dest' when rpath may be changed by xrealloc.
2003-04-11Remove anachronistic casts of xmalloc, xrealloc, and xcalloc return values.Jim Meyering
2003-04-10(canonicalize_file_name): NUL-terminate the result.Jim Meyering
2003-04-10(canonicalize_file_name): Always free `extra_buf' before returning.Jim Meyering
2003-04-10(canonicalize_file_name): Return NULL immediately if resolvepath fails.Jim Meyering
Otherwise, `readlink --canonical /no-such-file' would exhaust virtual memory on some systems (e.g. Solaris).
2003-04-10(canonicalize_file_name): Remove stray semicolonJim Meyering
that caused `readlink --canonical RELATIVE_NAME' to fail on e.g., Solaris systems.
2003-01-20Include "path-concat.h".Jim Meyering
2003-01-11Don't test HAVE_ERRNO_H. It's not necessary.Jim Meyering
Don't test HAVE_STDDEF_H. It's not necessary. Use definition of PTR_INT_TYPE from obstack.h.
2003-01-11From Dmitry Levin.Jim Meyering