summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Crispin <john@phrozen.org>2016-08-31 18:16:31 +0200
committerJohn Crispin <john@phrozen.org>2016-08-31 18:16:31 +0200
commitf9ad6bacd7efa578369427e7e75f0177bd3cf290 (patch)
tree72d9f2de68a5e99e426a2a6b1e30161ab2013fb3
parent3f0e8e1a08a7dbfd408affeece24f626bf4a54b8 (diff)
downloadfstools-f9ad6bacd7efa578369427e7e75f0177bd3cf290.tar.gz
fix logic bug inside extroot uuid verification code
Signed-off-by: John Crispin <john@phrozen.org>
-rw-r--r--block.c2
1 files changed, 1 insertions, 1 deletions
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",