summaryrefslogtreecommitdiff
path: root/lib/canonicalize.c
AgeCommit message (Collapse)Author
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