Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sbin/gpt PR/51497: Clare: Allow gpt -p <n> create to work.
details: https://anonhg.NetBSD.org/src/rev/ca4cd7193bdb
branches: trunk
changeset: 347930:ca4cd7193bdb
user: christos <christos%NetBSD.org@localhost>
date: Fri Sep 23 19:36:50 2016 +0000
description:
PR/51497: Clare: Allow gpt -p <n> create to work.
diffstat:
sbin/gpt/create.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (30 lines):
diff -r 5abee90c54b9 -r ca4cd7193bdb sbin/gpt/create.c
--- a/sbin/gpt/create.c Fri Sep 23 17:45:25 2016 +0000
+++ b/sbin/gpt/create.c Fri Sep 23 19:36:50 2016 +0000
@@ -33,7 +33,7 @@
__FBSDID("$FreeBSD: src/sbin/gpt/create.c,v 1.11 2005/08/31 01:47:19 marcel Exp $");
#endif
#ifdef __RCSID
-__RCSID("$NetBSD: create.c,v 1.22 2016/06/09 19:04:43 christos Exp $");
+__RCSID("$NetBSD: create.c,v 1.23 2016/09/23 19:36:50 christos Exp $");
#endif
#include <sys/types.h>
@@ -128,7 +128,7 @@
int active = 0;
int force = 0;
int primary_only = 0;
- u_int parts = 128;
+ u_int parts = 0;
while ((ch = getopt(argc, argv, "AfPp:")) != -1) {
switch(ch) {
@@ -149,6 +149,8 @@
return usage();
}
}
+ if (parts == 0)
+ parts = 128;
if (argc != optind)
return usage();
Home |
Main Index |
Thread Index |
Old Index