summaryrefslogtreecommitdiff
path: root/src/output/slbt_output_fdcwd.c
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2024-02-19 03:31:04 +0000
committermidipix <writeonce@midipix.org>2024-02-19 03:43:05 +0000
commitd4b2a5603d628ed00a764cb526df02e3a382a0c1 (patch)
tree6a0ef37030e7a96c2ed5fcb691f165ad3b7d2505 /src/output/slbt_output_fdcwd.c
parent81e06363fd5be411ff34013f1024664f68f66a12 (diff)
downloadslibtool-d4b2a5603d628ed00a764cb526df02e3a382a0c1.tar.bz2
slibtool-d4b2a5603d628ed00a764cb526df02e3a382a0c1.tar.xz
slbt_util_real_path(): rewrite as a wrapper around an internal slbt_realpath().
Diffstat (limited to 'src/output/slbt_output_fdcwd.c')
-rw-r--r--src/output/slbt_output_fdcwd.c5
1 files changed, 3 insertions, 2 deletions
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));