]> git.ipfire.org Git - thirdparty/coreutils.git/commit
rm: disallow --n alias for --no-preserve-root
authorPádraig Brady <P@draigBrady.com>
Tue, 4 Oct 2016 12:43:32 +0000 (13:43 +0100)
committerPádraig Brady <P@draigBrady.com>
Tue, 4 Oct 2016 22:35:59 +0000 (23:35 +0100)
commit0e060d9fef64727aa2d41f00f8217c61166bb2e0
treefae045097daf523f4071f18ab633666653dc27ab
parentf04daf570b91286d47a80074cf4a6a63c4309dc0
rm: disallow --n alias for --no-preserve-root

* src/rm.c (main): Ensure the full --no-preserve-root
option is specified, rather than allowing --n etc.
* tests/rm/r-root.sh: Add a test case.
* NEWS: Mention the change in behavior.

Improved by Jim Meyering.
Fixes http://bugs.gnu.org/24604
NEWS
src/rm.c
tests/rm/r-root.sh