diff options
| author | Jim Meyering <meyering@redhat.com> | 2008-01-30 13:43:15 +0100 |
|---|---|---|
| committer | Jim Meyering <meyering@redhat.com> | 2008-01-30 13:51:38 +0100 |
| commit | ed5c4e770a27862813c0182be8680abeb005d15b (patch) | |
| tree | 9eff6d3bb6c974405a392116607daddde202b0ef /ChangeLog | |
| parent | Don't modify argv in dd. (diff) | |
| download | coreutils-ed5c4e770a27862813c0182be8680abeb005d15b.tar.gz coreutils-ed5c4e770a27862813c0182be8680abeb005d15b.zip | |
Improve "rmdir --ignore-fail-on-non-empty"
* src/rmdir.c (remove_parents, main): With --ignore-fail-on-non-empty,
suppress a diagnostic also for other errno values, which can arise
with read-only media or when the parent directory has the immutable
attribute (set via chattr +i).
(errno_may_be_empty, ignorable_failure): New functions.
* src/remove.c (is_empty_dir): Move function to ...
* src/system.h (is_empty_dir): ...here, and make it inline.
Suggested by Josselin Mouette in <http://bugs.debian.org/363011>
via Bob Proulx.
* NEWS: Mention the improvement.
Diffstat (limited to 'ChangeLog')
| -rw-r--r-- | ChangeLog | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -1,3 +1,17 @@ +2008-01-30 Jim Meyering <meyering@redhat.com> + + Improve "rmdir --ignore-fail-on-non-empty" + * src/rmdir.c (remove_parents, main): With --ignore-fail-on-non-empty, + suppress a diagnostic also for other errno values, which can arise + with read-only media or when the parent directory has the immutable + attribute (set via chattr +i). + (errno_may_be_empty, ignorable_failure): New functions. + * src/remove.c (is_empty_dir): Move function to ... + * src/system.h (is_empty_dir): ...here, and make it inline. + Suggested by Josselin Mouette in <http://bugs.debian.org/363011> + via Bob Proulx. + * NEWS: Mention the improvement. + 2008-01-29 Paul Eggert <eggert@cs.ucla.edu> Don't modify argv in dd. |
