summaryrefslogtreecommitdiffhomepage
path: root/src/driver
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2021-04-20 22:15:00 +0000
committermidipix <writeonce@midipix.org>2021-04-20 19:27:27 +0000
commit25a377af92d753ba157274e2b8ee630372c0619d (patch)
treef858c5be1ded00a6df8c66bc896ac01803c280a6 /src/driver
parenta8e1b46ade78289800f2e8b65b7f6e6e6fa7a9c4 (diff)
downloadtpax-25a377af92d753ba157274e2b8ee630372c0619d.tar.bz2
tpax-25a377af92d753ba157274e2b8ee630372c0619d.tar.xz
internals: replace tpax_readlink() with tpax_readlinkat().
Diffstat (limited to 'src/driver')
-rw-r--r--src/driver/tpax_unit_ctx.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/driver/tpax_unit_ctx.c b/src/driver/tpax_unit_ctx.c
index a94bf05..0f0bd98 100644
--- a/src/driver/tpax_unit_ctx.c
+++ b/src/driver/tpax_unit_ctx.c
@@ -55,7 +55,8 @@ int tpax_get_unit_ctx(
}
if (S_ISLNK(ctx->st.st_mode)) {
- if (tpax_readlink(
+ if (tpax_readlinkat(
+ tpax_driver_fdcwd(dctx),
path,ctx->linkbuf,
sizeof(ctx->linkbuf)) < 0) {
free(ctx);