diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2007-12-31 17:51:58 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2007-12-31 17:51:58 +0000 |
commit | 1983cad2f4127affd8762dabd8f51e13f89e33aa (patch) | |
tree | cba0fae859627a3c772e86b813180f61c8638969 /sbin/disklabel | |
parent | 67000964610dbf9ae10dc10a6ddb33eda96ddd8e (diff) |
Reset partition size as well as partition offset before asking for
another, valid, set while adding a partition. Lost in r1.119 when we
switched to DL_SETP* defines.
Diffstat (limited to 'sbin/disklabel')
-rw-r--r-- | sbin/disklabel/editor.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sbin/disklabel/editor.c b/sbin/disklabel/editor.c index c2924647925..d1b1e0a4fa4 100644 --- a/sbin/disklabel/editor.c +++ b/sbin/disklabel/editor.c @@ -1,4 +1,4 @@ -/* $OpenBSD: editor.c,v 1.133 2007/12/30 22:42:19 krw Exp $ */ +/* $OpenBSD: editor.c,v 1.134 2007/12/31 17:51:57 krw Exp $ */ /* * Copyright (c) 1997-2000 Todd C. Miller <Todd.Miller@courtesan.com> @@ -17,7 +17,7 @@ */ #ifndef lint -static char rcsid[] = "$OpenBSD: editor.c,v 1.133 2007/12/30 22:42:19 krw Exp $"; +static char rcsid[] = "$OpenBSD: editor.c,v 1.134 2007/12/31 17:51:57 krw Exp $"; #endif /* not lint */ #include <sys/types.h> @@ -545,6 +545,7 @@ getoff1: printf("\nPlease re-enter an offset and size for partition " "%c.\n", 'a' + partno); DL_SETPOFFSET(pp, old_offset); + DL_SETPSIZE(pp, old_size); goto getoff1; /* Yeah, I know... */ } |