summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2021-04-15 06:45:39 +0000
committermidipix <writeonce@midipix.org>2021-04-15 09:44:27 +0000
commit289362ba17bd52e09116b69aa269c3eb73917caf (patch)
treef9499c45e1d039e386eb0b1f6734f484dc7432ea
parentd385653e04a9455a5c9e34cc9a63c7de375981d7 (diff)
downloadslibtool-289362ba17bd52e09116b69aa269c3eb73917caf.tar.bz2
slibtool-289362ba17bd52e09116b69aa269c3eb73917caf.tar.xz
library: replace all uses of chmod() with fchmodat().
-rw-r--r--src/logic/slbt_exec_link.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/logic/slbt_exec_link.c b/src/logic/slbt_exec_link.c
index 0bc474d..6f73c77 100644
--- a/src/logic/slbt_exec_link.c
+++ b/src/logic/slbt_exec_link.c
@@ -1776,7 +1776,7 @@ static int slbt_exec_link_create_executable(
&depsmeta,
SLBT_SYSTEM_ERROR(dctx,dctx->cctx->output));
- if (chmod(dctx->cctx->output,0755))
+ if (fchmodat(fdcwd,dctx->cctx->output,0755,0))
return slbt_exec_link_exit(
&depsmeta,
SLBT_SYSTEM_ERROR(dctx,dctx->cctx->output));