commit 922b4822043726dedee2b8e5c3729f7b1e856139 Author: Pavel Simerda Date: Tue Dec 2 17:45:10 2014 +0100 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 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 @@ static int iproute_modify(int cmd, unsigned flags, int argc, char **argv) argc--; argv++; } + if (!dst_ok) + usage(); + if (d || nhs_ok) { int idx;