[lib] don't add up errors in dm_flush_maps()
authorChristophe Varoqui <christophe.varoqui@free.fr>
Wed, 17 Dec 2008 23:01:37 +0000 (00:01 +0100)
committerChristophe Varoqui <christophe.varoqui@free.fr>
Wed, 17 Dec 2008 23:01:37 +0000 (00:01 +0100)
to avoid return code overflow, as pointed by "Bryn M. Reeves",
Redhat.

libmultipath/devmapper.c

index bcbeb28..6b289cf 100644 (file)
@@ -568,7 +568,7 @@ dm_flush_maps (void)
                goto out;
 
        do {
-               r += dm_flush_map(names->name);
+               r |= dm_flush_map(names->name);
                next = names->next;
                names = (void *) names + next;
        } while (next);