summaryrefslogtreecommitdiffhomepage
path: root/src/internal
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2018-07-06 08:21:02 -0400
committermidipix <writeonce@midipix.org>2018-07-06 08:21:02 -0400
commit5fac6c64cec889bc3587eee2e1b3cfabbe512967 (patch)
tree0de15f404481caa7cc3103a3fda0c3d7812ede51 /src/internal
parentca72f5d6c0d515036748cef287cc0d3a277536ea (diff)
downloadslibtool-5fac6c64cec889bc3587eee2e1b3cfabbe512967.tar.bz2
slibtool-5fac6c64cec889bc3587eee2e1b3cfabbe512967.tar.xz
library interfaces: invocations of openat() now use the context's fdcwd.
Diffstat (limited to 'src/internal')
-rw-r--r--src/internal/slibtool_libmeta_impl.c5
-rw-r--r--src/internal/slibtool_objmeta_impl.c5
2 files changed, 6 insertions, 4 deletions
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 <string.h>
#include <stdbool.h>
#include <slibtool/slibtool.h>
+#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)
diff --git a/src/internal/slibtool_objmeta_impl.c b/src/internal/slibtool_objmeta_impl.c
index 86ab420..b38cf75 100644
--- a/src/internal/slibtool_objmeta_impl.c
+++ b/src/internal/slibtool_objmeta_impl.c
@@ -7,6 +7,7 @@
#include <fcntl.h>
#include <stdio.h>
#include <slibtool/slibtool.h>
+#include "slibtool_driver_impl.h"
#include "slibtool_dprintf_impl.h"
#include "slibtool_errinfo_impl.h"
#include "slibtool_metafile_impl.h"
@@ -20,7 +21,7 @@ static int slbt_create_default_object_wrapper(
const struct slbt_source_version * verinfo;
if ((fdout = openat(
- AT_FDCWD,
+ slbt_driver_fdcwd(dctx),
ectx->ltobjname,
O_RDWR|O_CREAT|O_TRUNC,
0644)) < 0)
@@ -61,7 +62,7 @@ static int slbt_create_compatible_object_wrapper(
const struct slbt_source_version * verinfo;
if ((fdout = openat(
- AT_FDCWD,
+ slbt_driver_fdcwd(dctx),
ectx->ltobjname,
O_RDWR|O_CREAT|O_TRUNC,
0644)) < 0)