summaryrefslogtreecommitdiff
path: root/ChangeLog
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2006-06-26 13:29:48 +0000
committerJim Meyering <jim@meyering.net>2006-06-26 13:29:48 +0000
commit7590adf9b94f168f0dd7259d1b1c32e88f58114f (patch)
tree931bc3595ecea02cea7bb4239aa058ce2a6459c6 /ChangeLog
parent78b166d1b163df894d567b79d3bb5744156fb0fe (diff)
downloadcoreutils-7590adf9b94f168f0dd7259d1b1c32e88f58114f.tar.xz
Attempt rmdir (actually, unlinkat-with-AT_REMOVEDIR) upon any
fd_to_subdirp failure, not just when errno == EACCES. * src/remove.c (remove_dir): Use unlinkat-with-AT_REMOVEDIR, not rmdir, here, even though rmdir may happen to be adequate.
Diffstat (limited to 'ChangeLog')
-rw-r--r--ChangeLog6
1 files changed, 6 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index a55c5034d..22f2f588f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,11 +1,17 @@
2006-06-26 Jim Meyering <jim@meyering.net>
+ Attempt rmdir (actually, unlinkat-with-AT_REMOVEDIR) upon any
+ fd_to_subdirp failure, not just when errno == EACCES.
+ * src/remove.c (remove_dir): Use unlinkat-with-AT_REMOVEDIR, not
+ rmdir, here, even though rmdir may happen to be adequate.
+
* NEWS: rm no longer fails to remove an empty, unreadable directory
* src/remove.c (remove_cwd_entries): If we can't open a directory,
and the failure is not being ignored, try to remove the directory
with rmdir (aka unlinkat-with-AT_REMOVEDIR), in case it's empty.
Problem report and test case from Paul Eggert in
<http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/7425>.
+
* tests/rm/empty-inacc: New test, for the above.
Avoid a segfault for wc --files0=- < /dev/null.