summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkrw <krw@openbsd.org>2018-11-25 17:01:20 +0000
committerkrw <krw@openbsd.org>2018-11-25 17:01:20 +0000
commite4a1d39e47744bf36c637c371e77c49b6a48a0b7 (patch)
treeb4a21848a0f7252179d44d957d4f133c20658b40
parentmalloc(n) + bzero is better done as calloc(1,n) (diff)
downloadwireguard-openbsd-e4a1d39e47744bf36c637c371e77c49b6a48a0b7.tar.xz
wireguard-openbsd-e4a1d39e47744bf36c637c371e77c49b6a48a0b7.zip
FS_BOOT partitions are just partitions. Not free(ish) space.
ok deraadt@ as part of larger diff
-rw-r--r--sbin/disklabel/editor.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sbin/disklabel/editor.c b/sbin/disklabel/editor.c
index caff7b58089..cd42f69bafe 100644
--- a/sbin/disklabel/editor.c
+++ b/sbin/disklabel/editor.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: editor.c,v 1.351 2018/09/21 14:07:34 solene Exp $ */
+/* $OpenBSD: editor.c,v 1.352 2018/11/25 17:01:20 krw Exp $ */
/*
* Copyright (c) 1997-2000 Todd C. Miller <Todd.Miller@courtesan.com>
@@ -1443,7 +1443,6 @@ sort_partitions(struct disklabel *lp)
for (npartitions = 0, i = 0; i < lp->d_npartitions; i++) {
if (lp->d_partitions[i].p_fstype != FS_UNUSED &&
- lp->d_partitions[i].p_fstype != FS_BOOT &&
DL_GETPSIZE(&lp->d_partitions[i]) != 0)
spp[npartitions++] = &lp->d_partitions[i];
}