Fix handling of -t option for the type command.

Match any type, when no option is given, just like for the label command.
This commit is contained in:
mlelstv 2014-12-07 09:51:42 +00:00
parent f8a508d613
commit 9171ddc6ae
1 changed files with 2 additions and 2 deletions

View File

@ -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 <sys/types.h>
@ -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;