Blame SOURCES/0147-RHBZ-1272620-fail-rm-msg.patch

c896fb
---
c896fb
 multipathd/cli_handlers.c |    8 ++++----
c896fb
 multipathd/main.c         |    4 ++--
c896fb
 2 files changed, 6 insertions(+), 6 deletions(-)
c896fb
c896fb
Index: multipath-tools-130222/multipathd/cli_handlers.c
c896fb
===================================================================
c896fb
--- multipath-tools-130222.orig/multipathd/cli_handlers.c
c896fb
+++ multipath-tools-130222/multipathd/cli_handlers.c
c896fb
@@ -459,7 +459,7 @@ cli_del_path (void * v, char ** reply, i
c896fb
 	pp = find_path_by_dev(vecs->pathvec, param);
c896fb
 	if (!pp) {
c896fb
 		condlog(0, "%s: path already removed", param);
c896fb
-		return 0;
c896fb
+		return 1;
c896fb
 	}
c896fb
 	return ev_remove_path(pp, vecs);
c896fb
 }
c896fb
@@ -520,19 +520,19 @@ cli_del_map (void * v, char ** reply, in
c896fb
 	minor = dm_get_minor(param);
c896fb
 	if (minor < 0) {
c896fb
 		condlog(2, "%s: not a device mapper table", param);
c896fb
-		return 0;
c896fb
+		return 1;
c896fb
 	}
c896fb
 	major = dm_get_major(param);
c896fb
 	if (major < 0) {
c896fb
 		condlog(2, "%s: not a device mapper table", param);
c896fb
-		return 0;
c896fb
+		return 1;
c896fb
 	}
c896fb
 	sprintf(dev_path,"dm-%d", minor);
c896fb
 	alias = dm_mapname(major, minor);
c896fb
 	if (!alias) {
c896fb
 		condlog(2, "%s: mapname not found for %d:%d",
c896fb
 			param, major, minor);
c896fb
-		return 0;
c896fb
+		return 1;
c896fb
 	}
c896fb
 	rc = ev_remove_map(param, alias, minor, vecs);
c896fb
 	FREE(alias);
c896fb
Index: multipath-tools-130222/multipathd/main.c
c896fb
===================================================================
c896fb
--- multipath-tools-130222.orig/multipathd/main.c
c896fb
+++ multipath-tools-130222/multipathd/main.c
c896fb
@@ -437,12 +437,12 @@ ev_remove_map (char * devname, char * al
c896fb
 	if (!mpp) {
c896fb
 		condlog(2, "%s: devmap not registered, can't remove",
c896fb
 			devname);
c896fb
-		return 0;
c896fb
+		return 1;
c896fb
 	}
c896fb
 	if (strcmp(mpp->alias, alias)) {
c896fb
 		condlog(2, "%s: minor number mismatch (map %d, event %d)",
c896fb
 			mpp->alias, mpp->dmi->minor, minor);
c896fb
-		return 0;
c896fb
+		return 1;
c896fb
 	}
c896fb
 	return flush_map(mpp, vecs, 0);
c896fb
 }