Index: cgpt/cmd_find.c |
diff --git a/cgpt/cmd_find.c b/cgpt/cmd_find.c |
index e8fe9b319aeee041093c7acae283f58d07928449..40f10ba0afad567b6b39e8af8253fb7e6e82e9d0 100644 |
--- a/cgpt/cmd_find.c |
+++ b/cgpt/cmd_find.c |
@@ -171,7 +171,7 @@ static int do_search(char *filename) { |
} |
for (i = 0; i < GetNumberOfEntries(&drive.gpt); ++i) { |
- entry = GetEntry(&drive.gpt, PRIMARY, i); |
+ entry = GetEntry(&drive.gpt, ANY_VALID, i); |
if (IsZero(&entry->type)) |
continue; |