[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[dm-devel] [PATCH] Fixup return code for 'multipath -l'



Hi Christophe,

'multipath -l' should really set the return code to '0' if no error occurred.

Please apply.

Cheers,

Hannes
--
Dr. Hannes Reinecke			hare suse de
SuSE Linux Products GmbH		S390 & zSeries
Maxfeldstraße 5				+49 911 74053 688
90409 Nürnberg				http://www.suse.de
 multipath/main.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/multipath/main.c b/multipath/main.c
index c1257a2..b6f8814 100644
--- a/multipath/main.c
+++ b/multipath/main.c
@@ -280,8 +280,10 @@ configure (void)
 
 	filter_pathvec(pathvec, refwwid);
 
-	if (conf->list)
+	if (conf->list) {
+		r = 0;
 		goto out;
+	}
 
 	/*
 	 * core logic entry point

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]