summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2024-02-08 08:34:42 +0000
committermidipix <writeonce@midipix.org>2024-02-08 08:34:42 +0000
commitc1e423be0dcd4c3ac8309e7b4455da6aa3127676 (patch)
treee43720a8eb35aaf88f50e913d80133044c1421bf /src
parent89caff5866dfb5eac961cb2f8d3c40f67ab43aa6 (diff)
downloadslibtool-c1e423be0dcd4c3ac8309e7b4455da6aa3127676.tar.bz2
slibtool-c1e423be0dcd4c3ac8309e7b4455da6aa3127676.tar.xz
slbt_archive_import(): check whether the imported archive is a placeholder.
Diffstat (limited to 'src')
-rw-r--r--src/helper/slbt_archive_import.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/helper/slbt_archive_import.c b/src/helper/slbt_archive_import.c
index 924a54f..051c817 100644
--- a/src/helper/slbt_archive_import.c
+++ b/src/helper/slbt_archive_import.c
@@ -6,6 +6,7 @@
#include <slibtool/slibtool.h>
#include "slibtool_driver_impl.h"
+#include "slibtool_symlink_impl.h"
#include "slibtool_errinfo_impl.h"
/* legacy fallback, no longer in use */
@@ -56,6 +57,11 @@ int slbt_archive_import(
char * dstarchive,
char * srcarchive)
{
+ if (slbt_symlink_is_a_placeholder(
+ slbt_driver_fdcwd(dctx),
+ srcarchive))
+ return 0;
+
return slbt_archive_import_impl(
dctx,ectx,
dstarchive,