summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2009-03-22 19:58:44 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2009-03-22 19:58:44 +0000
commit9ee1a4311426775aa2c40929d52cc5b899199801 (patch)
tree0dd65f6f0c565a7bebb4182b289296755df10e3c
parent9aa46dbac9550aed153adaa2d7b177300cfd7047 (diff)
let u (undo) work for the A command; ok krw
-rw-r--r--sbin/disklabel/editor.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sbin/disklabel/editor.c b/sbin/disklabel/editor.c
index c3802ba3dc5..ccd209cf8d7 100644
--- a/sbin/disklabel/editor.c
+++ b/sbin/disklabel/editor.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: editor.c,v 1.176 2009/03/22 19:01:32 krw Exp $ */
+/* $OpenBSD: editor.c,v 1.177 2009/03/22 19:58:43 deraadt 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.176 2009/03/22 19:01:32 krw Exp $";
+static char rcsid[] = "$OpenBSD: editor.c,v 1.177 2009/03/22 19:58:43 deraadt Exp $";
#endif /* not lint */
#include <sys/types.h>
@@ -217,6 +217,8 @@ editor(struct disklabel *lp, int f, char *dev, char *fstabfile, int aflag)
break;
case 'A':
+ tmplabel = lastlabel;
+ lastlabel = label;
editor_allocspace(&label, mountpoints, 1);
break;
case 'a':