summaryrefslogtreecommitdiffhomepage
path: root/src/helper
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2018-06-21 14:56:15 -0400
committermidipix <writeonce@midipix.org>2018-06-21 14:56:15 -0400
commitb91b15299e81cfeef78ebe11634d2cd7f4558553 (patch)
tree6c3c99d63c7f5345f0693f96da292a5304858305 /src/helper
parent40a467b11cd162e20302193d6afeda67997b8050 (diff)
downloadslibtool-b91b15299e81cfeef78ebe11634d2cd7f4558553.tar.bz2
slibtool-b91b15299e81cfeef78ebe11634d2cd7f4558553.tar.xz
link mode: slbt_archive_import(): properly detect placeholder symlinks.
Diffstat (limited to 'src/helper')
-rw-r--r--src/helper/slbt_archive_import.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/helper/slbt_archive_import.c b/src/helper/slbt_archive_import.c
index c45efa4..12fd68c 100644
--- a/src/helper/slbt_archive_import.c
+++ b/src/helper/slbt_archive_import.c
@@ -14,6 +14,7 @@
#include <slibtool/slibtool.h>
#include "slibtool_spawn_impl.h"
+#include "slibtool_symlink_impl.h"
#include "slibtool_readlink_impl.h"
#include "slibtool_errinfo_impl.h"
@@ -89,9 +90,8 @@ int slbt_archive_import(
char mrisrc [L_tmpnam];
char program[PATH_MAX];
- if (!slbt_readlink(srcarchive,program,sizeof(program)))
- if (!(strcmp(program,"/dev/null")))
- return 0;
+ if (slbt_symlink_is_a_placeholder(srcarchive))
+ return 0;
if ((size_t)snprintf(program,sizeof(program),"%s",
dctx->cctx->host.ar) >= sizeof(program))