diff options
author | Jeremie Koenig <jk@jk.fr.eu.org> | 2010-05-27 15:32:19 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2010-07-19 00:43:05 +0200 |
commit | b175462422f02a159a14dc5561d8bef6f84b2b66 (patch) | |
tree | 3cac1b222d0222bbf52edaff95a9c3bf388b3bd8 /init | |
parent | daf286cda559dd1eff0c9db46a4562c0255e76f1 (diff) | |
download | busybox-b175462422f02a159a14dc5561d8bef6f84b2b66.tar.gz |
readlink: use xmalloc_realpath()
Using realpath() directly with a non-NULL output buffer is unsafe because its
behavior is unspecified on systems which don't have PATH_MAX (ie. Hurd)
I beleive this also fixes a small bug whereby 'buf' would not be freed
on 'readlink -v' with ENABLE_FEATURE_CLEANUP.
Signed-off-by: Jeremie Koenig <jk@jk.fr.eu.org>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'init')
0 files changed, 0 insertions, 0 deletions