summaryrefslogtreecommitdiff
path: root/src/fallback
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2024-02-21 05:52:28 +0000
committermidipix <writeonce@midipix.org>2024-02-21 05:57:22 +0000
commit5b993e0818b603c1dec4126dfe45c617619eff93 (patch)
tree88ead06eac5f530932c424e6da4347ea0e94ae28 /src/fallback
parentf3e7bb09f083de850269a6d0982ca4d839f4d1ba (diff)
downloadslibtool-5b993e0818b603c1dec4126dfe45c617619eff93.tar.bz2
slibtool-5b993e0818b603c1dec4126dfe45c617619eff93.tar.xz
slbt_util_import_archive_mri(): simplify fallback interface, ensure building.
Diffstat (limited to 'src/fallback')
-rw-r--r--src/fallback/slbt_archive_import_mri.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/src/fallback/slbt_archive_import_mri.c b/src/fallback/slbt_archive_import_mri.c
index 705cb88..f5ff6f4 100644
--- a/src/fallback/slbt_archive_import_mri.c
+++ b/src/fallback/slbt_archive_import_mri.c
@@ -21,6 +21,7 @@
#include "slibtool_dprintf_impl.h"
#include "slibtool_symlink_impl.h"
#include "slibtool_readlink_impl.h"
+#include "slibtool_realpath_impl.h"
#include "slibtool_snprintf_impl.h"
#include "slibtool_errinfo_impl.h"
@@ -100,10 +101,9 @@ static void slbt_util_import_archive_child(
}
int slbt_util_import_archive_mri(
- const struct slbt_driver_ctx * dctx,
- struct slbt_exec_ctx * ectx,
- char * dstarchive,
- char * srcarchive)
+ struct slbt_exec_ctx * ectx,
+ char * dstarchive,
+ char * srcarchive)
{
int fdcwd;
pid_t pid;
@@ -116,6 +116,11 @@ int slbt_util_import_archive_mri(
char mrisrc [96];
char program[PATH_MAX];
+ const struct slbt_driver_ctx * dctx;
+
+ /* driver context */
+ dctx = (slbt_get_exec_ictx(ectx))->dctx;
+
/* fdcwd */
fdcwd = slbt_driver_fdcwd(dctx);