naccyde / rpms / iproute

Forked from rpms/iproute 5 months ago
Clone

Blame SOURCES/0089-iprule-Align-help-text-with-man-page-synopsis.patch

049c96
From a1655d17463e2a71af8d43381333c14661ad1e50 Mon Sep 17 00:00:00 2001
049c96
From: Phil Sutter <psutter@redhat.com>
049c96
Date: Mon, 7 Mar 2016 20:32:48 +0100
049c96
Subject: [PATCH] iprule: Align help text with man page synopsis
049c96
049c96
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1251186
049c96
Upstream Status: iproute2.git commit 67eedcd9a145f
049c96
Conflicts: Patch adjusted to missing save/restore support.
049c96
049c96
commit 67eedcd9a145f30aa0a185b7235f01b66349effe
049c96
Author: Phil Sutter <phil@nwl.cc>
049c96
Date:   Thu Feb 25 13:07:35 2016 +0100
049c96
049c96
    iprule: Align help text with man page synopsis
049c96
049c96
    The help text was misleading: One could think it is possible to list
049c96
    rules by selector, which would be nice but isn't. This change also
049c96
    clarifies that 'ip rule' defaults to 'list' if no further arguments are
049c96
    given.
049c96
049c96
    Signed-off-by: Phil Sutter <phil@nwl.cc>
049c96
---
049c96
 ip/iprule.c | 4 +++-
049c96
 1 file changed, 3 insertions(+), 1 deletion(-)
049c96
049c96
diff --git a/ip/iprule.c b/ip/iprule.c
049c96
index 89fa7ef..059b50b 100644
049c96
--- a/ip/iprule.c
049c96
+++ b/ip/iprule.c
049c96
@@ -32,7 +32,9 @@ static void usage(void) __attribute__((noreturn));
049c96
 
049c96
 static void usage(void)
049c96
 {
049c96
-	fprintf(stderr, "Usage: ip rule [ list | add | del | flush ] SELECTOR ACTION\n");
049c96
+	fprintf(stderr, "Usage: ip rule { add | del } SELECTOR ACTION\n");
049c96
+	fprintf(stderr, "       ip rule { flush }\n");
049c96
+	fprintf(stderr, "       ip rule [ list ]\n");
049c96
 	fprintf(stderr, "SELECTOR := [ not ] [ from PREFIX ] [ to PREFIX ] [ tos TOS ] [ fwmark FWMARK[/MASK] ]\n");
049c96
 	fprintf(stderr, "            [ iif STRING ] [ oif STRING ] [ pref NUMBER ]\n");
049c96
 	fprintf(stderr, "ACTION := [ table TABLE_ID ]\n");
049c96
-- 
049c96
1.8.3.1
049c96