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/ff58b42c973b
branches:  trunk
changeset: 332621:ff58b42c973b
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 d2c9869f417b -r ff58b42c973b 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