Jim Meyering
|
35cad8ae05
|
(canonicalize_file_name) [!HAVE_RESOLVEPATH]:
A memory-allocation error could result in heap corruption. Fix it
by also updating `dest' when rpath may be changed by xrealloc.
|
2003-05-02 21:42:51 +00:00 |
|
Jim Meyering
|
58b92bbeb2
|
Remove anachronistic casts of xmalloc, xrealloc, and xcalloc return values.
|
2003-04-11 12:20:35 +00:00 |
|
Jim Meyering
|
31c3844239
|
(canonicalize_file_name): NUL-terminate the result.
|
2003-04-10 17:03:26 +00:00 |
|
Jim Meyering
|
e02387ea57
|
(canonicalize_file_name): Always free `extra_buf' before returning.
|
2003-04-10 16:54:19 +00:00 |
|
Jim Meyering
|
ef6c004648
|
(canonicalize_file_name): Return NULL immediately if resolvepath fails.
Otherwise, `readlink --canonical /no-such-file' would exhaust
virtual memory on some systems (e.g. Solaris).
|
2003-04-10 16:47:35 +00:00 |
|
Jim Meyering
|
1b2123bba3
|
(canonicalize_file_name): Remove stray semicolon
that caused `readlink --canonical RELATIVE_NAME' to fail on e.g.,
Solaris systems.
|
2003-04-10 15:57:45 +00:00 |
|
Jim Meyering
|
dadc92d2a9
|
Include "path-concat.h".
|
2003-01-20 16:41:19 +00:00 |
|
Jim Meyering
|
c7463c38f8
|
Don't test HAVE_ERRNO_H. It's not necessary.
Don't test HAVE_STDDEF_H. It's not necessary.
Use definition of PTR_INT_TYPE from obstack.h.
|
2003-01-11 09:32:48 +00:00 |
|
Jim Meyering
|
eb04d885c2
|
From Dmitry Levin.
|
2003-01-11 08:29:46 +00:00 |
|