Blame SOURCES/0233-Revert-ip-fix-exit-code-for-addrlabel.patch

049c96
From d1481d4882f12d786afb9eb78a255ea78ea3a7c5 Mon Sep 17 00:00:00 2001
049c96
From: Phil Sutter <psutter@redhat.com>
049c96
Date: Wed, 3 Aug 2016 13:29:11 +0200
049c96
Subject: [PATCH] Revert "ip: fix exit code for addrlabel"
049c96
049c96
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1288042
049c96
049c96
This reverts commit 205034e561dbc0e1fa380970130b28188870c265.
049c96
---
049c96
 ip/ipaddrlabel.c | 6 +++---
049c96
 1 file changed, 3 insertions(+), 3 deletions(-)
049c96
049c96
diff --git a/ip/ipaddrlabel.c b/ip/ipaddrlabel.c
049c96
index 7f25f0b..a0b6e6f 100644
049c96
--- a/ip/ipaddrlabel.c
049c96
+++ b/ip/ipaddrlabel.c
049c96
@@ -185,7 +185,7 @@ static int ipaddrlabel_modify(int cmd, int argc, char **argv)
049c96
 		req.ifal.ifal_family = AF_INET6;
049c96
 
049c96
 	if (rtnl_talk(&rth, &req.n, NULL, 0) < 0)
049c96
-		return -2;
049c96
+		return 2;
049c96
 
049c96
 	return 0;
049c96
 }
049c96
@@ -234,12 +234,12 @@ static int ipaddrlabel_flush(int argc, char **argv)
049c96
 
049c96
 	if (rtnl_wilddump_request(&rth, af, RTM_GETADDRLABEL) < 0) {
049c96
 		perror("Cannot send dump request");
049c96
-		return -1;
049c96
+		return 1;
049c96
 	}
049c96
 
049c96
 	if (rtnl_dump_filter(&rth, flush_addrlabel, NULL) < 0) {
049c96
 		fprintf(stderr, "Flush terminated\n");
049c96
-		return -1;
049c96
+		return 1;
049c96
 	}
049c96
 
049c96
 	return 0;
049c96
-- 
049c96
1.8.3.1
049c96