Blame SOURCES/iproute2-3.10.0-route.patch

a4b897
commit 922b4822043726dedee2b8e5c3729f7b1e856139
a4b897
Author: Pavel Simerda <psimerda@redhat.com>
a4b897
Date:   Tue Dec 2 17:45:10 2014 +0100
a4b897
a4b897
    ip route: don't assume default route
a4b897
    
a4b897
    Just print the help when "ip route del" is called without any other
a4b897
    arguments.
a4b897
    
a4b897
    Resolves:
a4b897
    
a4b897
     * https://bugzilla.redhat.com/show_bug.cgi?id=997965
a4b897
    
a4b897
    Signed-off-by: Pavel Šimerda <psimerda@redhat.com>
a4b897
a4b897
diff --git a/ip/iproute.c b/ip/iproute.c
a4b897
index c9cf5d6..32847c6 100644
a4b897
--- a/ip/iproute.c
a4b897
+++ b/ip/iproute.c
a4b897
@@ -975,6 +975,9 @@ static int iproute_modify(int cmd, unsigned flags, int argc, char **argv)
a4b897
 		argc--; argv++;
a4b897
 	}
a4b897
 
a4b897
+	if (!dst_ok)
a4b897
+		usage();
a4b897
+
a4b897
 	if (d || nhs_ok)  {
a4b897
 		int idx;
a4b897