From 42225ff62fe1c2577bbb344d21f1cc5a0afcd2cc Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Sat, 3 Oct 2015 16:38:52 +0200 Subject: [PATCH] gpt-auto-generator: fix duplicate backing partition check We shouldn't exit the loop early, otherwise our duplicate backing partition check won't work. --- src/gpt-auto-generator/gpt-auto-generator.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/gpt-auto-generator/gpt-auto-generator.c b/src/gpt-auto-generator/gpt-auto-generator.c index dbb6648..96425c5 100644 --- a/src/gpt-auto-generator/gpt-auto-generator.c +++ b/src/gpt-auto-generator/gpt-auto-generator.c @@ -871,7 +871,6 @@ static int get_block_device_harder(const char *path, dev_t *dev) { goto fallback; found = de; - break; } if (!found) -- 2.7.4