From 5fac6c64cec889bc3587eee2e1b3cfabbe512967 Mon Sep 17 00:00:00 2001 From: midipix Date: Fri, 6 Jul 2018 08:21:02 -0400 Subject: library interfaces: invocations of openat() now use the context's fdcwd. --- src/internal/slibtool_libmeta_impl.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/internal/slibtool_libmeta_impl.c') diff --git a/src/internal/slibtool_libmeta_impl.c b/src/internal/slibtool_libmeta_impl.c index c1366d9..18984bd 100644 --- a/src/internal/slibtool_libmeta_impl.c +++ b/src/internal/slibtool_libmeta_impl.c @@ -9,6 +9,7 @@ #include #include #include +#include "slibtool_driver_impl.h" #include "slibtool_dprintf_impl.h" #include "slibtool_errinfo_impl.h" #include "slibtool_metafile_impl.h" @@ -36,7 +37,7 @@ static int slbt_create_default_library_wrapper( /* create */ if ((fdout = openat( - AT_FDCWD, + slbt_driver_fdcwd(dctx), dctx->cctx->output, O_RDWR|O_CREAT|O_TRUNC, 0644)) < 0) @@ -148,7 +149,7 @@ static int slbt_create_compatible_library_wrapper( /* create */ if ((fdout = openat( - AT_FDCWD, + slbt_driver_fdcwd(dctx), dctx->cctx->output, O_RDWR|O_CREAT|O_TRUNC, 0644)) < 0) -- cgit v1.2.3