diff options
author | Jim Meyering <jim@meyering.net> | 2006-12-28 19:37:07 +0100 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2006-12-28 19:37:07 +0100 |
commit | 88891aef7e24be24b3de49c91c25dc2049d08ffd (patch) | |
tree | b1427a0015fa713353d3441d9a3e3c9741b3e408 /ChangeLog | |
parent | bbcfef38a33a93a1c777e9adc732e10b7357c8b5 (diff) | |
download | coreutils-88891aef7e24be24b3de49c91c25dc2049d08ffd.tar.xz |
When moving "up" the hierarchy, be careful to remove a just-emptied
directory before opening ".", to avoid trouble with file system
implementations that cache readdir results at opendir-time.
* src/remove.c (AD_pop_and_chdir): Add a file descriptor parameter.
Don't update **DIRP. Don't call fdopendir here.
(remove_dir): Call fdopendir here instead.
Report and patch from Mikulas Patocka:
<http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00170.html>
Diffstat (limited to 'ChangeLog')
-rw-r--r-- | ChangeLog | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -1,3 +1,14 @@ +2006-12-28 Jim Meyering <jim@meyering.net> + + When moving "up" the hierarchy, be careful to remove a just-emptied + directory before opening ".", to avoid trouble with file system + implementations that cache readdir results at opendir-time. + * src/remove.c (AD_pop_and_chdir): Add a file descriptor parameter. + Don't update **DIRP. Don't call fdopendir here. + (remove_dir): Call fdopendir here instead. + Report and patch from Mikulas Patocka: + <http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00170.html> + 2006-12-27 Jim Meyering <jim@meyering.net> * src/tail.c (usage): Mention +N for --bytes and --lines. |