From: Lennart Poettering Date: Sat, 3 Oct 2015 14:38:52 +0000 (+0200) Subject: gpt-auto-generator: fix duplicate backing partition check X-Git-Tag: v227~22^2~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=42225ff62fe1c2577bbb344d21f1cc5a0afcd2cc;p=thirdparty%2Fsystemd.git gpt-auto-generator: fix duplicate backing partition check We shouldn't exit the loop early, otherwise our duplicate backing partition check won't work. --- diff --git a/src/gpt-auto-generator/gpt-auto-generator.c b/src/gpt-auto-generator/gpt-auto-generator.c index dbb6648daac..96425c5b07f 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)