X-Git-Url: http://git.openwrt.org/?p=project%2Ffstools.git;a=blobdiff_plain;f=block.c;h=2e95c033b53ba23b091498e396e2db41e9f0141a;hp=720ecb11dc25814638ee8bee051fff58d135a1c6;hb=f9ad6bacd7efa578369427e7e75f0177bd3cf290;hpb=3f0e8e1a08a7dbfd408affeece24f626bf4a54b8 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",