From e79de79e1c1e326bcca7b2d9415d456ab201d5b0 Mon Sep 17 00:00:00 2001 From: Christophe Varoqui Date: Thu, 20 Oct 2005 15:28:45 +0200 Subject: [PATCH] [kpartx] partition type check was flawed Lars Soltau, IBM --- kpartx/kpartx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kpartx/kpartx.c b/kpartx/kpartx.c index cf7eda9..12b80a4 100644 --- a/kpartx/kpartx.c +++ b/kpartx/kpartx.c @@ -315,7 +315,7 @@ main(int argc, char **argv){ for (i = 0; i < ptct; i++) { ptp = &pts[i]; - if (type && strcmp(type, ptp->type) > 0) + if (type && strcmp(type, ptp->type)) continue; /* here we get partitions */ -- 2.7.4