Blame SOURCES/0231-Revert-ip-return-correct-exit-code-on-route-failure.patch

049c96
From 6bcd2f4cc935039d7360fba0cb5a55de5131199d Mon Sep 17 00:00:00 2001
049c96
From: Phil Sutter <psutter@redhat.com>
049c96
Date: Wed, 3 Aug 2016 13:26:25 +0200
049c96
Subject: [PATCH] Revert "ip: return correct exit code on route failure"
049c96
049c96
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1288042
049c96
049c96
This reverts commit daba15cd1437d136cfd3f09bd42d7c79ffa3d517.
049c96
---
049c96
 ip/iproute.c | 2 +-
049c96
 1 file changed, 1 insertion(+), 1 deletion(-)
049c96
049c96
diff --git a/ip/iproute.c b/ip/iproute.c
049c96
index 094566a..378bdba 100644
049c96
--- a/ip/iproute.c
049c96
+++ b/ip/iproute.c
049c96
@@ -1083,7 +1083,7 @@ static int iproute_modify(int cmd, unsigned flags, int argc, char **argv)
049c96
 		req.r.rtm_family = AF_INET;
049c96
 
049c96
 	if (rtnl_talk(&rth, &req.n, NULL, 0) < 0)
049c96
-		return -2;
049c96
+		return -1;
049c96
 
049c96
 	return 0;
049c96
 }
049c96
-- 
049c96
1.8.3.1
049c96