Source-Changes-HG archive

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

[src/trunk]: src/sbin/gpt actually return the uuid when parsing one that is i...



details:   https://anonhg.NetBSD.org/src/rev/fe46ac182786
branches:  trunk
changeset: 802763:fe46ac182786
user:      jnemeth <jnemeth%NetBSD.org@localhost>
date:      Wed Oct 01 01:07:24 2014 +0000

description:
actually return the uuid when parsing one that is in numeric format

diffstat:

 sbin/gpt/gpt_uuid.c |  8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diffs (30 lines):

diff -r e21ead82693b -r fe46ac182786 sbin/gpt/gpt_uuid.c
--- a/sbin/gpt/gpt_uuid.c       Wed Oct 01 01:03:47 2014 +0000
+++ b/sbin/gpt/gpt_uuid.c       Wed Oct 01 01:07:24 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: gpt_uuid.c,v 1.2 2014/09/30 22:56:36 jnemeth Exp $     */
+/*     $NetBSD: gpt_uuid.c,v 1.3 2014/10/01 01:07:24 jnemeth Exp $     */
 
 /*-
  * Copyright (c) 2014 The NetBSD Foundation, Inc.
@@ -32,7 +32,7 @@
 
 #include <sys/cdefs.h>
 #ifdef __RCSID
-__RCSID("$NetBSD: gpt_uuid.c,v 1.2 2014/09/30 22:56:36 jnemeth Exp $");
+__RCSID("$NetBSD: gpt_uuid.c,v 1.3 2014/10/01 01:07:24 jnemeth Exp $");
 #endif
 
 #include <stdio.h>
@@ -211,8 +211,10 @@
 {
        struct dce_uuid u;
 
-       if (gpt_uuid_parse_numeric(s, &u) != -1)
+       if (gpt_uuid_parse_numeric(s, &u) != -1) {
+               gpt_dce_to_uuid(&u, uuid);
                return 0;
+       }
 
        if (gpt_uuid_parse_symbolic(s, &u) == -1)
                return -1;



Home | Main Index | Thread Index | Old Index