Blob Blame History Raw
From d1481d4882f12d786afb9eb78a255ea78ea3a7c5 Mon Sep 17 00:00:00 2001
From: Phil Sutter <psutter@redhat.com>
Date: Wed, 3 Aug 2016 13:29:11 +0200
Subject: [PATCH] Revert "ip: fix exit code for addrlabel"

Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1288042

This reverts commit 205034e561dbc0e1fa380970130b28188870c265.
---
 ip/ipaddrlabel.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/ip/ipaddrlabel.c b/ip/ipaddrlabel.c
index 7f25f0b..a0b6e6f 100644
--- a/ip/ipaddrlabel.c
+++ b/ip/ipaddrlabel.c
@@ -185,7 +185,7 @@ static int ipaddrlabel_modify(int cmd, int argc, char **argv)
 		req.ifal.ifal_family = AF_INET6;
 
 	if (rtnl_talk(&rth, &req.n, NULL, 0) < 0)
-		return -2;
+		return 2;
 
 	return 0;
 }
@@ -234,12 +234,12 @@ static int ipaddrlabel_flush(int argc, char **argv)
 
 	if (rtnl_wilddump_request(&rth, af, RTM_GETADDRLABEL) < 0) {
 		perror("Cannot send dump request");
-		return -1;
+		return 1;
 	}
 
 	if (rtnl_dump_filter(&rth, flush_addrlabel, NULL) < 0) {
 		fprintf(stderr, "Flush terminated\n");
-		return -1;
+		return 1;
 	}
 
 	return 0;
-- 
1.8.3.1