[kpartx] partition type check was flawed
authorChristophe Varoqui <root@xa-s05.(none)>
Thu, 20 Oct 2005 13:28:45 +0000 (15:28 +0200)
committerChristophe Varoqui <root@xa-s05.(none)>
Thu, 20 Oct 2005 13:28:45 +0000 (15:28 +0200)
Lars Soltau, IBM

kpartx/kpartx.c

index cf7eda9..12b80a4 100644 (file)
@@ -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 */