Skip to contentSkip to conversation

Fixup return code for 'multipath -l'

PATCH In review Hannes Reinecke 2 participants 2 messages Sep 1, 2006 – Sep 3, 2006 Device mapper

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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

Signature · 4 lines
Dr. Hannes Reinecke			[email protected]
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(-)
multipath/main.c +3 -1
index c1257a2..b6f8814 100644
@@ -280,8 +280,10 @@ configure (void)
 
 	filter_pathvec(pathvec, refwwid);
 
-	if (conf->list)
+	if (conf->list) {
+		r = 0;
 		goto out;
+	}
 
 	/*
 	 * core logic entry point
#1 lore raw
Quoted 7 lines · Hannes Reinecke

Hi Christophe,

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

Please apply.

Done.
The 4 previous patches are also merged.

Thanks,
cvaroqui