diff options
author | 2009-03-22 19:58:43 +0000 | |
---|---|---|
committer | 2009-03-22 19:58:43 +0000 | |
commit | 682c717b6a6a923cdba5674cc58be455363b7df5 (patch) | |
tree | fffc13bcf94d9406445b8310d93825c4bd9664c4 /sbin/disklabel/editor.c | |
parent | tweaks; (diff) | |
download | wireguard-openbsd-682c717b6a6a923cdba5674cc58be455363b7df5.tar.xz wireguard-openbsd-682c717b6a6a923cdba5674cc58be455363b7df5.zip |
let u (undo) work for the A command; ok krw
Diffstat (limited to 'sbin/disklabel/editor.c')
-rw-r--r-- | sbin/disklabel/editor.c | 6 |
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': |