From: John Crispin Date: Wed, 31 Aug 2016 16:16:31 +0000 (+0200) Subject: fix logic bug inside extroot uuid verification code X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=f9ad6bacd7efa578369427e7e75f0177bd3cf290;p=oweals%2Ffstools.git fix logic bug inside extroot uuid verification code Signed-off-by: John Crispin --- diff --git a/block.c b/block.c index 720ecb1..2e95c03 100644 --- a/block.c +++ b/block.c @@ -1108,7 +1108,7 @@ static int check_extroot(char *path) tag, errno, strerror(errno)); fclose(fp); - if (*uuid || !strcasecmp(uuid, pr->uuid)) + if (*uuid && !strcasecmp(uuid, pr->uuid)) return 0; ULOG_ERR("extroot: UUID mismatch (root: %s, %s: %s)\n",