]> git.ipfire.org Git - thirdparty/coreutils.git/commit
doc: rmdir: clarify --ignore-fail-on-non-empty operation
authorPádraig Brady <P@draigBrady.com>
Sun, 17 Apr 2022 12:11:09 +0000 (13:11 +0100)
committerPádraig Brady <P@draigBrady.com>
Sun, 17 Apr 2022 12:46:03 +0000 (13:46 +0100)
commitdd614d6011f64e06852adc532e7357de59f4bac3
treec99645141115f05f95782d1cab3805c3c09ff0fa
parent07d59f5a54547eec3eb7b8103e6c38ae1f2f89f6
doc: rmdir: clarify --ignore-fail-on-non-empty operation

This option has changed from ignoring only ENOTEMPTY|EEXIST
(i.e. ignore errors _solely_ due to dir not empty),
to ignoring some other errors from more protected dirs
that are not empty.  That adjustment was made to better
support use with --parents, to essentially remove as much of
a hierarchy as possible, without erroring as we hit more
protected non empty parent dirs.
That functionality adjustment was originally discussed at:
https://lists.gnu.org/r/bug-coreutils/2008-01/msg00283.html

* src/rmdir.c (usage): Adjust to be more accurate to current behavior.
Also adjust --parents option to be easier to read.
* doc/coreutils.texi (rmdir invocation): Likewise.
Reported at https://github.com/coreutils/coreutils/issues/40
doc/coreutils.texi
src/rmdir.c