summaryrefslogtreecommitdiff
path: root/src/driver/tpax_unit_ctx.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/driver/tpax_unit_ctx.c')
-rw-r--r--src/driver/tpax_unit_ctx.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/driver/tpax_unit_ctx.c b/src/driver/tpax_unit_ctx.c
index 0f0bd98..f034b17 100644
--- a/src/driver/tpax_unit_ctx.c
+++ b/src/driver/tpax_unit_ctx.c
@@ -27,6 +27,7 @@ static int tpax_free_unit_ctx_impl(struct tpax_unit_ctx_impl * ctx, int ret)
int tpax_get_unit_ctx(
const struct tpax_driver_ctx * dctx,
+ int fdat,
const char * path,
struct tpax_unit_ctx ** pctx)
{
@@ -45,8 +46,8 @@ int tpax_get_unit_ctx(
if (dctx->cctx->drvflags & TPAX_DRIVER_EXEC_MODE_WRITE_COPY) {
ret = fstatat(
- tpax_driver_fdcwd(dctx),path,
- &ctx->st,AT_SYMLINK_NOFOLLOW);
+ fdat,path,&ctx->st,
+ AT_SYMLINK_NOFOLLOW);
if (ret < 0) {
free(ctx);
@@ -56,8 +57,7 @@ int tpax_get_unit_ctx(
if (S_ISLNK(ctx->st.st_mode)) {
if (tpax_readlinkat(
- tpax_driver_fdcwd(dctx),
- path,ctx->linkbuf,
+ fdat,path,ctx->linkbuf,
sizeof(ctx->linkbuf)) < 0) {
free(ctx);
return TPAX_SYSTEM_ERROR(dctx);