diff options
author | 2007-12-31 17:51:57 +0000 | |
---|---|---|
committer | 2007-12-31 17:51:57 +0000 | |
commit | 6c363b49e38bdafa513a40d93fbcf728a430ed2f (patch) | |
tree | 8a98c4700cee8b869fa9be7a0ed6c21019699c9c | |
parent | we must reset the poll timeout to INFTIM when receiving the IMSG_SETTIME (diff) | |
download | wireguard-openbsd-6c363b49e38bdafa513a40d93fbcf728a430ed2f.tar.xz wireguard-openbsd-6c363b49e38bdafa513a40d93fbcf728a430ed2f.zip |
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.
-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... */ } |