From 747162109fb1c891baf6aafa1ca0410bd08d04a4 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Thu, 24 May 2018 17:29:14 +0200 Subject: realpath,readlink -f: coreutils compat, closes 11021 function old new delta xmalloc_realpath_coreutils - 121 +121 Signed-off-by: Denys Vlasenko --- coreutils/readlink.c | 2 +- coreutils/realpath.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'coreutils') diff --git a/coreutils/readlink.c b/coreutils/readlink.c index b8e327d..49361ce 100644 --- a/coreutils/readlink.c +++ b/coreutils/readlink.c @@ -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); } diff --git a/coreutils/realpath.c b/coreutils/realpath.c index aa878fc..4392368 100644 --- a/coreutils/realpath.c +++ b/coreutils/realpath.c @@ -38,7 +38,7 @@ int realpath_main(int argc UNUSED_PARAM, char **argv) do { /* NOFORK: only one alloc is allowed; must free */ - char *resolved_path = xmalloc_realpath(*argv); + char *resolved_path = xmalloc_realpath_coreutils(*argv); if (resolved_path != NULL) { puts(resolved_path); free(resolved_path); -- cgit v1.1