94eb1c4dc6
Add some tests which coreutils realpath pass but BusyBox realpath fails (bar one). Adjust xmalloc_realpath_coreutils() so the tests pass: - Expand symbolic links before testing whether the last path component exists. - When the link target is a relative path canonicalize it by passing it through xmalloc_realpath_coreutils() as already happens for absolute paths. - Ignore trailing slashes when finding the last path component and correctly handle the case where the only slash is at the start of the path. This requires ignoring superfluous leading slashes. - Undo all changes to the path so error messages from the caller show the original filename. function old new delta xmalloc_realpath_coreutils 214 313 +99 Signed-off-by: Ron Yorston <rmy@pobox.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> |
||
---|---|---|
.. | ||
.gitignore | ||
applet_metadata.h | ||
applets.h.sh | ||
applets.src.h | ||
ar_.h | ||
bb_archive.h | ||
bb_e2fs_defs.h | ||
busybox.h | ||
dump.h | ||
fix_u32.h | ||
grp_.h | ||
inet_common.h | ||
libbb.h | ||
liblzo_interface.h | ||
platform.h | ||
pwd_.h | ||
rtc_.h | ||
shadow_.h | ||
unicode.h | ||
usage.src.h | ||
volume_id.h | ||
xatonum.h | ||
xregex.h |