summaryrefslogtreecommitdiff
path: root/ChangeLog
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2022-01-10 10:34:09 -0800
committerPaul Eggert <eggert@cs.ucla.edu>2022-01-10 10:38:04 -0800
commit66c5e7dd3aa58bde7a928867a763bf7e11206c93 (patch)
treef07d59cdd9ecdc80e75615006da012175eab2d5c /ChangeLog
parent8d8e9c85c1e017537b36453b4ed559fdd98483bf (diff)
downloadgnulib-66c5e7dd3aa58bde7a928867a763bf7e11206c93.tar.gz
backupfile: fix bug when renaming not from wd
* lib/backupfile.c (backupfile_internal): Fix bug when DIR_FD does not specify the working directory, and when RENAME. Without the bug fix, FILE is treated as relative to the working directory, not relative to DIR_FD, when renaming FILE. This bug was introduced when DIR_FD and RENAME were introduced, in 2018-10-24T02:10:21Z!eggert@cs.ucla.edu. While we’re at it, when SDIR is nonnegative improve performance a bit by passing an SDIR-relative old name to renameatu.
Diffstat (limited to 'ChangeLog')
-rw-r--r--ChangeLog12
1 files changed, 12 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index aa3b04035d..33dbeb7bc6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,15 @@
+2022-01-10 Paul Eggert <eggert@cs.ucla.edu>
+
+ backupfile: fix bug when renaming not from wd
+ * lib/backupfile.c (backupfile_internal): Fix bug when DIR_FD
+ does not specify the working directory, and when RENAME.
+ Without the bug fix, FILE is treated as relative to the working
+ directory, not relative to DIR_FD, when renaming FILE.
+ This bug was introduced when DIR_FD and RENAME were introduced,
+ in 2018-10-24T02:10:21Z!eggert@cs.ucla.edu.
+ While we’re at it, when SDIR is nonnegative improve performance a
+ bit by passing an SDIR-relative old name to renameatu.
+
2022-01-09 Bruno Haible <bruno@clisp.org>
host-cpu-c-abi: Add support for LoongArch64 CPU.