diff options
author | midipix <writeonce@midipix.org> | 2018-06-22 08:04:19 -0400 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2018-06-22 08:05:39 -0400 |
commit | 127b9405d0d7ed2a4c8d246a5e960e8313f38988 (patch) | |
tree | 2b2146391d81dcca031e9b95ac61cd2a0f44f5b0 /src/helper | |
parent | b91b15299e81cfeef78ebe11634d2cd7f4558553 (diff) | |
download | slibtool-127b9405d0d7ed2a4c8d246a5e960e8313f38988.tar.bz2 slibtool-127b9405d0d7ed2a4c8d246a5e960e8313f38988.tar.xz |
install mode: slbt_copy_file(): properly detect placeholder symlinks.
Diffstat (limited to 'src/helper')
-rw-r--r-- | src/helper/slbt_copy_file.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/helper/slbt_copy_file.c b/src/helper/slbt_copy_file.c index 39e1dd9..a8fd840 100644 --- a/src/helper/slbt_copy_file.c +++ b/src/helper/slbt_copy_file.c @@ -6,6 +6,7 @@ #include <slibtool/slibtool.h> #include "slibtool_spawn_impl.h" +#include "slibtool_symlink_impl.h" #include "slibtool_errinfo_impl.h" int slbt_copy_file( @@ -19,6 +20,10 @@ int slbt_copy_file( char * cp[4]; int ret; + /* placeholder? */ + if (slbt_symlink_is_a_placeholder(src)) + return 0; + /* cp argv */ cp[0] = "cp"; cp[1] = src; |