From d4b2a5603d628ed00a764cb526df02e3a382a0c1 Mon Sep 17 00:00:00 2001 From: midipix Date: Mon, 19 Feb 2024 03:31:04 +0000 Subject: slbt_util_real_path(): rewrite as a wrapper around an internal slbt_realpath(). --- src/output/slbt_output_fdcwd.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/output') diff --git a/src/output/slbt_output_fdcwd.c b/src/output/slbt_output_fdcwd.c index 1d07892..6f2c9a4 100644 --- a/src/output/slbt_output_fdcwd.c +++ b/src/output/slbt_output_fdcwd.c @@ -13,6 +13,7 @@ #include "slibtool_driver_impl.h" #include "slibtool_dprintf_impl.h" +#include "slibtool_realpath_impl.h" static const char aclr_reset[] = "\x1b[0m"; static const char aclr_bold[] = "\x1b[1m"; @@ -36,7 +37,7 @@ static int slbt_output_fdcwd_plain(const struct slbt_driver_ctx * dctx) sprintf(scwd,"%d",fdcwd); } - if (slbt_util_real_path(fdcwd,".",0,path,sizeof(path)) < 0) { + if (slbt_realpath(fdcwd,".",0,path,sizeof(path)) < 0) { ferror = 1; memset(path,0,sizeof(path)); strerror_r(errno,path,sizeof(path)); @@ -72,7 +73,7 @@ static int slbt_output_fdcwd_annotated(const struct slbt_driver_ctx * dctx) sprintf(scwd,"%d",fdcwd); } - if (slbt_util_real_path(fdcwd,".",0,path,sizeof(path)) < 0) { + if (slbt_realpath(fdcwd,".",0,path,sizeof(path)) < 0) { ferror = 1; memset(path,0,sizeof(path)); strerror_r(errno,path,sizeof(path)); -- cgit v1.2.3