summaryrefslogtreecommitdiffhomepage
path: root/src/internal
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2021-04-15 06:25:47 +0000
committermidipix <writeonce@midipix.org>2021-04-15 08:03:32 +0000
commitd586fc76aa37919351355792e7ef829d30cf3922 (patch)
tree26ef46b43d6832dfbffdb3f3739491f5ebaacdb8 /src/internal
parentb8d3bb8ec89cc703b939bd7097f931ce4ddc2200 (diff)
downloadslibtool-d586fc76aa37919351355792e7ef829d30cf3922.tar.bz2
slibtool-d586fc76aa37919351355792e7ef829d30cf3922.tar.xz
library: replace all uses of rename() with renameat().
Diffstat (limited to 'src/internal')
-rw-r--r--src/internal/slibtool_symlink_impl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/internal/slibtool_symlink_impl.c b/src/internal/slibtool_symlink_impl.c
index 8f1244d..ca7f6cd 100644
--- a/src/internal/slibtool_symlink_impl.c
+++ b/src/internal/slibtool_symlink_impl.c
@@ -108,7 +108,7 @@ int slbt_create_symlink(
if (symlinkat(atarget,fdcwd,tmplnk))
return SLBT_SYSTEM_ERROR(dctx,tmplnk);
- return rename(tmplnk,lnkname)
+ return renameat(fdcwd,tmplnk,fdcwd,lnkname)
? SLBT_SYSTEM_ERROR(dctx,lnkname)
: 0;
}