summaryrefslogtreecommitdiff
path: root/system/musl/amalgamation.patch
diff options
context:
space:
mode:
Diffstat (limited to 'system/musl/amalgamation.patch')
-rw-r--r--system/musl/amalgamation.patch6
1 files changed, 3 insertions, 3 deletions
diff --git a/system/musl/amalgamation.patch b/system/musl/amalgamation.patch
index fd77581da..5918c3be6 100644
--- a/system/musl/amalgamation.patch
+++ b/system/musl/amalgamation.patch
@@ -413,7 +413,7 @@ index f407ffe0..4fd3a60c 100644
errno = ENOENT;
return 0;
diff --git a/src/unistd/renameat.c b/src/unistd/renameat.c
-index c3b40a25..e2f03d39 100644
+index c3b40a25..6af5aed6 100644
--- a/src/unistd/renameat.c
+++ b/src/unistd/renameat.c
@@ -1,11 +1,93 @@
@@ -468,8 +468,8 @@ index c3b40a25..e2f03d39 100644
+
+ /* Test equality of old and new.
+ If they both resolve to the same dentry, we do nothing. */
-+ if (fstatat(oldfd, old, &oldstat, 0) == 0 && \
-+ fstatat(newfd, new, &newstat, 0) == 0 && \
++ if (fstatat(oldfd, old, &oldstat, AT_SYMLINK_NOFOLLOW) == 0 && \
++ fstatat(newfd, new, &newstat, AT_SYMLINK_NOFOLLOW) == 0 && \
+ oldstat.st_dev == newstat.st_dev && \
+ oldstat.st_ino == newstat.st_ino) return 0;
+