diff options
author | midipix <writeonce@midipix.org> | 2021-04-15 06:25:47 +0000 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2021-04-15 08:03:32 +0000 |
commit | d586fc76aa37919351355792e7ef829d30cf3922 (patch) | |
tree | 26ef46b43d6832dfbffdb3f3739491f5ebaacdb8 /src/logic | |
parent | b8d3bb8ec89cc703b939bd7097f931ce4ddc2200 (diff) | |
download | slibtool-d586fc76aa37919351355792e7ef829d30cf3922.tar.bz2 slibtool-d586fc76aa37919351355792e7ef829d30cf3922.tar.xz |
library: replace all uses of rename() with renameat().
Diffstat (limited to 'src/logic')
-rw-r--r-- | src/logic/slbt_exec_link.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/logic/slbt_exec_link.c b/src/logic/slbt_exec_link.c index 94f1f19..d83935c 100644 --- a/src/logic/slbt_exec_link.c +++ b/src/logic/slbt_exec_link.c @@ -1766,7 +1766,7 @@ static int slbt_exec_link_create_executable( &depsmeta, SLBT_SYSTEM_ERROR(dctx,wrapper)); - if (rename(wrapper,dctx->cctx->output)) + if (renameat(fdcwd,wrapper,fdcwd,dctx->cctx->output)) return slbt_exec_link_exit( &depsmeta, SLBT_SYSTEM_ERROR(dctx,dctx->cctx->output)); |