commit | 922b4822043726dedee2b8e5c3729f7b1e856139 | [log] [tgz] |
---|---|---|
author | Pavel Simerda <psimerda@redhat.com> | Tue Dec 02 17:45:10 2014 +0100 |
committer | Stephen Hemminger <shemming@brocade.com> | Wed Dec 03 09:16:07 2014 -0800 |
tree | d1fccc0e6cf770d30e415bbc6b39f31540a9da24 | |
parent | 10ed8b7f6751305c78596bd5b8732bfccbd69e21 [diff] [blame] |
ip route: don't assume default route Just print the help when "ip route del" is called without any other arguments. Resolves: * https://bugzilla.redhat.com/show_bug.cgi?id=997965 Signed-off-by: Pavel Šimerda <psimerda@redhat.com>
diff --git a/ip/iproute.c b/ip/iproute.c index c9cf5d6..32847c6 100644 --- a/ip/iproute.c +++ b/ip/iproute.c
@@ -975,6 +975,9 @@ argc--; argv++; } + if (!dst_ok) + usage(); + if (d || nhs_ok) { int idx;