From 02e33a649b486541c7210c2875d1abd15b4512e3 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Fri, 3 Oct 1997 23:01:53 +0000 Subject: Update the "real" copy of the label when you do a "write". Noted by Theo. --- sbin/disklabel/editor.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'sbin') 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 @@ -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 @@ -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': -- cgit v1.2.3