Module Name: src
Committed By: mlelstv
Date: Sun Dec 7 09:51:42 UTC 2014
Modified Files:
src/sbin/gpt: type.c
Log Message:
Fix handling of -t option for the type command.
Match any type, when no option is given, just like for the label command.
To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/sbin/gpt/type.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sbin/gpt/type.c
diff -u src/sbin/gpt/type.c:1.5 src/sbin/gpt/type.c:1.6
--- src/sbin/gpt/type.c:1.5 Tue Sep 30 18:00:00 2014
+++ src/sbin/gpt/type.c Sun Dec 7 09:51:42 2014
@@ -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;