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:
parent
3f91e662f2
commit
747162109f
4 changed files with 33 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue