summaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2018-02-24 21:00:01 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2018-02-24 21:00:01 +0000
commitc60ed38293a3885b317a08e651cd79119b18a0ec (patch)
tree90e6738f04f1025e5102edc7f4c42bcc31894e7e /sbin
parent686c958aca2344cdb3db7367fd70c2445c36f003 (diff)
If you can modify p_cpg in when 'm'odifying a partition, you should be
able to do the same when 'a'dding a partition. Only in 'X'pert mode of course. ok otto@
Diffstat (limited to 'sbin')
-rw-r--r--sbin/disklabel/editor.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sbin/disklabel/editor.c b/sbin/disklabel/editor.c
index 0d449d1d22d..2f64475039e 100644
--- a/sbin/disklabel/editor.c
+++ b/sbin/disklabel/editor.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: editor.c,v 1.311 2018/02/23 21:39:58 krw Exp $ */
+/* $OpenBSD: editor.c,v 1.312 2018/02/24 21:00:00 krw Exp $ */
/*
* Copyright (c) 1997-2000 Todd C. Miller <Todd.Miller@courtesan.com>
@@ -901,7 +901,8 @@ editor_add(struct disklabel *lp, char *p)
if (get_fstype(lp, partno) == 0 &&
get_mp(lp, partno) == 0 &&
get_fsize(lp, partno) == 0 &&
- get_bsize(lp, partno) == 0)
+ get_bsize(lp, partno) == 0 &&
+ get_cpg(lp, partno) == 0)
return;
}
/* Bailed out at some point, so effectively delete the partition. */