From f711a07371e111d09dbd74227ff22699eca2c57a Mon Sep 17 00:00:00 2001 From: Patrick W. Plusnick II Date: Tue, 17 Aug 2010 23:53:09 -0500 Subject: [PATCH] maint: rm -d prints an error message and exits *rm.c: since it after 2005, as indicate by a comment, I made rm -d print an error message and exit, rather than silently ignoring the option. --- src/rm.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/rm.c b/src/rm.c index 42f0a57..59cb801 100644 --- a/src/rm.c +++ b/src/rm.c @@ -227,10 +227,10 @@ main (int argc, char **argv) switch (c) { case 'd': - /* Ignore this option, for backward compatibility with - coreutils 5.92. FIXME: Some time after 2005, change this - to report an error (or perhaps behave like FreeBSD does) - instead of ignoring the option. */ + /* This is not supported by vote of the maintainers. Print + * an error message rather than ignore it. */ + error (EXIT_FAILURE, 0, "the -d flag is not supported in rm(1)" + ", please see rmdir(1) instead."); break; case 'f': -- 1.7.0.4