diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 1997-10-03 23:01:53 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 1997-10-03 23:01:53 +0000 |
commit | 02e33a649b486541c7210c2875d1abd15b4512e3 (patch) | |
tree | cf85193f1da18abdc8e977a2d19174980fbe93a7 /sbin/disklabel | |
parent | 23e89bd2f3d7f2a8df2359f445cfaac1ba2e1813 (diff) |
Update the "real" copy of the label when you do a "write". Noted by Theo.
Diffstat (limited to 'sbin/disklabel')
-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 cc8885d71a1..2ac7a4fddff 100644 --- a/sbin/disklabel/editor.c +++ b/sbin/disklabel/editor.c @@ -1,4 +1,4 @@ -/* $OpenBSD: editor.c,v 1.7 1997/10/02 16:38:20 millert Exp $ */ +/* $OpenBSD: editor.c,v 1.8 1997/10/03 23:01:52 millert Exp $ */ /* * Copyright (c) 1997 Todd C. Miller <Todd.Miller@courtesan.com> @@ -31,7 +31,7 @@ */ #ifndef lint -static char rcsid[] = "$OpenBSD: editor.c,v 1.7 1997/10/02 16:38:20 millert Exp $"; +static char rcsid[] = "$OpenBSD: editor.c,v 1.8 1997/10/03 23:01:52 millert Exp $"; #endif /* not lint */ #include <sys/types.h> @@ -233,6 +233,8 @@ editor(lp, f) puts("No changes."); else if (writelabel(f, bootarea, &label) != 0) warnx("unable to write label"); + else + *lp = label; break; case 'x': |