summaryrefslogtreecommitdiffhomepage
path: root/src/fallback
diff options
context:
space:
mode:
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);