summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/logic/slbt_exec_install.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/logic/slbt_exec_install.c b/src/logic/slbt_exec_install.c
index 727a38b..072c301 100644
--- a/src/logic/slbt_exec_install.c
+++ b/src/logic/slbt_exec_install.c
@@ -360,9 +360,7 @@ static int slbt_exec_install_entry(
fdcwd = slbt_driver_fdcwd(dctx);
/* fexe */
- fexe = fstatat(fdcwd,slnkname,&st,0)
- ? false
- : true;
+ fexe = !fstatat(fdcwd,slnkname,&st,0);
/* argument suffix */
dot = strrchr(entry->arg,'.');
@@ -380,8 +378,9 @@ static int slbt_exec_install_entry(
if ((slash = strrchr(lasource,'/'))) {
*slash++ = 0;
sprintf(srcfile,"%s/.libs/%s",lasource,slash);
- } else
+ } else {
sprintf(srcfile,".libs/%s",lasource);
+ }
/* -shrext, dsosuffix */
strcpy(sobuf,dctx->cctx->settings.dsosuffix);