bug#6402: [PATCH] rm: remove no-op -d option (original) (raw)

[Top][All Lists]


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


From: Eric Blake
Subject: bug#6402: [PATCH] rm: remove no-op -d option
Date: Thu, 16 Sep 2010 11:54:34 -0600


Jim, what do you think of this alternative patch, which avoids the issue of a new translation string by instead letting getopt parsing reject -d like any other unknown option?

NEWS | 2 ++ src/rm.c | 10 +--------- 2 files changed, 3 insertions(+), 9 deletions(-)

diff --git a/NEWS b/NEWS index 3eb28b1..dc398a9 100644 --- a/NEWS +++ b/NEWS @@ -48,6 +48,8 @@ GNU coreutils NEWS -- outline -- [The old behavior was introduced in coreutils-6.0 and had been removed for English only using a different method since coreutils-8.1]

diff --git a/src/rm.c b/src/rm.c index 42f0a57..3b78e19 100644 --- a/src/rm.c +++ b/src/rm.c @@ -63,7 +63,6 @@ enum interactive_type

static struct option const long_opts[] = {

@@ -222,17 +221,10 @@ main (int argc, char *argv) / Try to disable the ability to unlink a directory. */ priv_set_remove_linkdir ();

-- 1.7.2.3