aboutsummaryrefslogtreecommitdiffstats
path: root/ip/iptuntap.c
diff options
context:
space:
mode:
authorAndreas Henriksson <andreas@fatal.se>2012-05-19 16:08:21 +0200
committerStephen Hemminger <shemminger@vyatta.com>2012-05-21 15:17:28 -0700
commit6e30461e73d4321864b49fb4cd6238ec9bb1ba75 (patch)
tree8f27f3fb9d7d65838d888bb1f9ab2d6e48a51fbe /ip/iptuntap.c
parentdb70d91c7859700f9febf9bad8c29681bf9ac711 (diff)
downloadplatform_external_iproute2-6e30461e73d4321864b49fb4cd6238ec9bb1ba75.tar.gz
platform_external_iproute2-6e30461e73d4321864b49fb4cd6238ec9bb1ba75.tar.bz2
platform_external_iproute2-6e30461e73d4321864b49fb4cd6238ec9bb1ba75.zip
iproute2: man page and /bin/ip disagree on del vs delete
Reported by Robert Henney: > the 'ip' man page does not mention the command "del" at all but does > claim, "As a rule, it is possible to add, delete and show (or list ) objects". > however, 'ip' does not always recognize "delete" as a commend. > > robh@debian:~$ ip tunnel delete > Command "delete" is unknown, try "ip tunnel help". Lets use "delete" in all calls to matches() for consistency. This will make both "del" and "delete" work everywhere. Signed-off-by: Andreas Henriksson <andreas@fatal.se>
Diffstat (limited to 'ip/iptuntap.c')
-rw-r--r--ip/iptuntap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ip/iptuntap.c b/ip/iptuntap.c
index 29f2777e..20914e11 100644
--- a/ip/iptuntap.c
+++ b/ip/iptuntap.c
@@ -307,7 +307,7 @@ int do_iptuntap(int argc, char **argv)
if (argc > 0) {
if (matches(*argv, "add") == 0)
return do_add(argc-1, argv+1);
- if (matches(*argv, "del") == 0)
+ if (matches(*argv, "delete") == 0)
return do_del(argc-1, argv+1);
if (matches(*argv, "show") == 0 ||
matches(*argv, "lst") == 0 ||