aboutsummaryrefslogtreecommitdiffstats
path: root/lib/canonicalize.c (follow)
AgeCommit message (Collapse)AuthorFilesLines
2006-08-21Remove from CVS, since the bootstrap script generates them automatically.Paul Eggert1-307/+0
2005-09-22Sync from gnulib.Paul Eggert1-11/+2
2005-07-02Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.Jim Meyering1-3/+1
2005-06-02Don't use "path" or "filename" to mean "file name"Paul Eggert1-38/+40
in comments or local variable names.
2005-05-18Include canonicalize.h first, to test interface.Paul Eggert1-19/+4
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 Meyering1-1/+1
2005-03-23Remove duplicate `#include "stat-macros.h"'.Jim Meyering1-2/+1
2004-08-02(errno): Remove decl; we now assume C89 or better.Paul Eggert1-7/+3
2004-07-07Don't infloop when MAXSYMLINKS is not defined.Jim Meyering1-4/+4
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 Meyering1-4/+4
Replace each corresponding `break' stmt with `continue'.
2004-07-06Include "stat-macros.h".Jim Meyering1-5/+6
(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 Meyering1-34/+71
(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 Meyering1-3/+0
2004-06-19Remove all S_IS* and S_IF* definitions.Jim Meyering1-10/+1
Instead, just include "stat-macros.h".
2004-06-01(canonicalize_file_name): Update use of xreadlink.Jim Meyering1-2/+2
2004-03-29[HAVE_UNISTD_H]: Include <unistd.h>, for resolvepath declaration.Jim Meyering1-0/+4
2003-05-02(canonicalize_file_name) [!HAVE_RESOLVEPATH]:Jim Meyering1-2/+4
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 Meyering1-1/+1
2003-04-10(canonicalize_file_name): NUL-terminate the result.Jim Meyering1-0/+4
2003-04-10(canonicalize_file_name): Always free `extra_buf' before returning.Jim Meyering1-6/+1
2003-04-10(canonicalize_file_name): Return NULL immediately if resolvepath fails.Jim Meyering1-0/+5
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 Meyering1-1/+1
that caused `readlink --canonical RELATIVE_NAME' to fail on e.g., Solaris systems.
2003-01-20Include "path-concat.h".Jim Meyering1-0/+1
2003-01-11Don't test HAVE_ERRNO_H. It's not necessary.Jim Meyering1-7/+15
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 Meyering1-0/+291