[multipath] Fixup return code for 'multipath -l'
authorChristophe Varoqui <cvaroqui@zezette.localdomain>
Sun, 3 Sep 2006 22:15:44 +0000 (00:15 +0200)
committerChristophe Varoqui <cvaroqui@zezette.localdomain>
Sun, 3 Sep 2006 22:15:44 +0000 (00:15 +0200)
'multipath -l' should really set the return code to '0' if no error
occurred.

Hannes Reinecke, Suse

multipath/main.c

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