naccyde / rpms / iproute

Forked from rpms/iproute 5 months ago
Clone

Blame SOURCES/0230-Revert-ip-fix-exit-code-for-rule-failures.patch

049c96
From 97a3579120732908e937505fa91966e9fc5098a6 Mon Sep 17 00:00:00 2001
049c96
From: Phil Sutter <psutter@redhat.com>
049c96
Date: Wed, 3 Aug 2016 13:25:08 +0200
049c96
Subject: [PATCH] Revert "ip: fix exit code for rule failures"
049c96
049c96
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1288042
049c96
049c96
This reverts commit edc209d4479b6b89aed9cb5b661002cf27031bea.
049c96
---
049c96
 ip/iprule.c | 2 +-
049c96
 1 file changed, 1 insertion(+), 1 deletion(-)
049c96
049c96
diff --git a/ip/iprule.c b/ip/iprule.c
049c96
index 2a153f5..63d7fcc 100644
049c96
--- a/ip/iprule.c
049c96
+++ b/ip/iprule.c
049c96
@@ -358,7 +358,7 @@ static int iprule_modify(int cmd, int argc, char **argv)
049c96
 		req.r.rtm_table = RT_TABLE_MAIN;
049c96
 
049c96
 	if (rtnl_talk(&rth, &req.n, NULL, 0) < 0)
049c96
-		return -2;
049c96
+		return 2;
049c96
 
049c96
 	return 0;
049c96
 }
049c96
-- 
049c96
1.8.3.1
049c96