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>
This commit is contained in:
Pavel Simerda 2014-12-02 17:45:10 +01:00 committed by Stephen Hemminger
parent 10ed8b7f67
commit 922b482204
1 changed files with 3 additions and 0 deletions

View File

@ -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;