gpt-auto-generator: fix duplicate backing partition check
authorLennart Poettering <lennart@poettering.net>
Sat, 3 Oct 2015 14:38:52 +0000 (16:38 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 6 Oct 2015 07:41:02 +0000 (09:41 +0200)
We shouldn't exit the loop early, otherwise our duplicate backing
partition check won't work.

src/gpt-auto-generator/gpt-auto-generator.c

index dbb6648..96425c5 100644 (file)
@@ -871,7 +871,6 @@ static int get_block_device_harder(const char *path, dev_t *dev) {
                         goto fallback;
 
                 found = de;
-                break;
         }
 
         if (!found)