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:
Denys Vlasenko 2018-05-24 17:29:14 +02:00
parent 3f91e662f2
commit 747162109f
4 changed files with 33 additions and 2 deletions

View file

@ -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);