summaryrefslogtreecommitdiff
path: root/src/logic
diff options
context:
space:
mode:
Diffstat (limited to 'src/logic')
-rw-r--r--src/logic/slbt_exec_install.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/logic/slbt_exec_install.c b/src/logic/slbt_exec_install.c
index ffb689a..008c89d 100644
--- a/src/logic/slbt_exec_install.c
+++ b/src/logic/slbt_exec_install.c
@@ -244,8 +244,14 @@ static int slbt_exec_install_entry(
? false
: true;
+ dot = strrchr(entry->arg,'.');
+
+ /* .lai --> .la */
+ if (!fexe && dot && !strcmp(dot,".lai"))
+ dot[3] = 0;
+
/* .la ? */
- if (!fexe && (!(dot = strrchr(entry->arg,'.')) || strcmp(dot,".la"))) {
+ if (!fexe && (!dot || strcmp(dot,".la"))) {
*src = (char *)entry->arg;
*dst = dest ? 0 : (char *)last->arg;