Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sbin/gpt Fix handling of -t option for the type command.



details:   https://anonhg.NetBSD.org/src/rev/2ebcea75adc7
branches:  trunk
changeset: 334794:2ebcea75adc7
user:      mlelstv <mlelstv%NetBSD.org@localhost>
date:      Sun Dec 07 09:51:42 2014 +0000

description:
Fix handling of -t option for the type command.
Match any type, when no option is given, just like for the label command.

diffstat:

 sbin/gpt/type.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (21 lines):

diff -r 52e378fcc1ba -r 2ebcea75adc7 sbin/gpt/type.c
--- a/sbin/gpt/type.c   Sun Dec 07 02:41:07 2014 +0000
+++ b/sbin/gpt/type.c   Sun Dec 07 09:51:42 2014 +0000
@@ -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 @@
                            (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;
 



Home | Main Index | Thread Index | Old Index