diff --git a/sbin/gpt/type.c b/sbin/gpt/type.c index bd5e9ae3d442..3215c2e4bf72 100644 --- a/sbin/gpt/type.c +++ b/sbin/gpt/type.c @@ -33,7 +33,7 @@ __FBSDID("$FreeBSD: src/sbin/gpt/remove.c,v 1.10 2006/10/04 18:20:25 marcel Exp $"); #endif #ifdef __RCSID -__RCSID("$NetBSD: type.c,v 1.5 2014/09/30 18:00:00 christos Exp $"); +__RCSID("$NetBSD: type.c,v 1.6 2014/12/07 09:51:42 mlelstv Exp $"); #endif #include @@ -124,7 +124,7 @@ chtype(int fd) (char *)utf16_to_utf8(ent->ent_name)) != 0) continue; - if (!gpt_uuid_is_nil(ent->ent_type) && + if (!gpt_uuid_is_nil(type) && !gpt_uuid_equal(type, ent->ent_type)) continue;