summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorotto <otto@openbsd.org>2007-05-29 17:17:49 +0000
committerotto <otto@openbsd.org>2007-05-29 17:17:49 +0000
commit867c4b88c3375fe187f70cfbf3038b0b548508ff (patch)
treebaa26ede6ec99fb146c80d600ed0b159a338a2bb
parentadd a new check method which allows to run external scripts/programs (diff)
downloadwireguard-openbsd-867c4b88c3375fe187f70cfbf3038b0b548508ff.tar.xz
wireguard-openbsd-867c4b88c3375fe187f70cfbf3038b0b548508ff.zip
when producing a v1 label, set the version!!!!
-rw-r--r--lib/libc/gen/disklabel.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libc/gen/disklabel.c b/lib/libc/gen/disklabel.c
index a921b8e0bf0..ac5a21f05ac 100644
--- a/lib/libc/gen/disklabel.c
+++ b/lib/libc/gen/disklabel.c
@@ -109,6 +109,7 @@ getdiskbyname(const char *name)
strlcpy(ptype, "tx", sizeof ptype);
max = 'a' - 1;
pp = &dp->d_partitions[0];
+ dp->d_version = 1;
for (p = 'a'; p < 'a' + MAXPARTITIONS; p++, pp++) {
long f;