realpath,readlink -f: coreutils compat, closes 11021
function old new delta xmalloc_realpath_coreutils - 121 +121 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
@ -86,7 +86,7 @@ int readlink_main(int argc UNUSED_PARAM, char **argv)
|
||||
|
||||
/* NOFORK: only one alloc is allowed; must free */
|
||||
if (opt & 1) { /* -f */
|
||||
buf = xmalloc_realpath(fname);
|
||||
buf = xmalloc_realpath_coreutils(fname);
|
||||
} else {
|
||||
buf = xmalloc_readlink_or_warn(fname);
|
||||
}
|
||||
|
Reference in New Issue
Block a user