Commit 922b4822 authored by Pavel Simerda's avatar Pavel Simerda Committed by Stephen Hemminger

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=997965Signed-off-by: default avatarPavel Šimerda <psimerda@redhat.com>
parent 10ed8b7f
......@@ -975,6 +975,9 @@ static int iproute_modify(int cmd, unsigned flags, int argc, char **argv)
argc--; argv++;
}
if (!dst_ok)
usage();
if (d || nhs_ok) {
int idx;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment