Source-Changes-HG archive

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

[src/trunk]: src/sbin/gpt hrmm...



details:   https://anonhg.NetBSD.org/src/rev/b1d05c403465
branches:  trunk
changeset: 342005:b1d05c403465
user:      jnemeth <jnemeth%NetBSD.org@localhost>
date:      Wed Dec 02 11:20:34 2015 +0000

description:
hrmm...

i386devel: {245} ./gpt add -b 1000 -s 1000 disk
Segmentation fault (core dumped)

Where's my flyswatter?   .......zzzzzzzap

diffstat:

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

diffs (21 lines):

diff -r 5c5c718e608a -r b1d05c403465 sbin/gpt/add.c
--- a/sbin/gpt/add.c    Wed Dec 02 10:19:58 2015 +0000
+++ b/sbin/gpt/add.c    Wed Dec 02 11:20:34 2015 +0000
@@ -33,7 +33,7 @@
 __FBSDID("$FreeBSD: src/sbin/gpt/add.c,v 1.14 2006/06/22 22:05:28 marcel Exp $");
 #endif
 #ifdef __RCSID
-__RCSID("$NetBSD: add.c,v 1.36 2015/12/02 04:07:11 christos Exp $");
+__RCSID("$NetBSD: add.c,v 1.37 2015/12/02 11:20:34 jnemeth Exp $");
 #endif
 
 #include <sys/types.h>
@@ -158,7 +158,7 @@
 {
        int ch;
 
-       while ((ch = getopt(argc, argv, GPT_AIS "bl:t:")) != -1) {
+       while ((ch = getopt(argc, argv, GPT_AIS "b:l:t:")) != -1) {
                switch(ch) {
                case 'b':
                        if (gpt_human_get(&block) == -1)



Home | Main Index | Thread Index | Old Index