diff options
author | Pedro Martelletto <pedro@cvs.openbsd.org> | 2006-04-07 11:25:38 +0000 |
---|---|---|
committer | Pedro Martelletto <pedro@cvs.openbsd.org> | 2006-04-07 11:25:38 +0000 |
commit | e31e9a1e7f88a9bf938136251eae26a08c4d0187 (patch) | |
tree | f57247fbfd97b44d9106ee680ba44732d5bb21b3 /sbin/fsck_ffs | |
parent | 4afbf7ed696becef01ef9e6304f0ea9c1a50d8d8 (diff) |
fsck needs to unset FS_FLAGS_UPDATED if it changes the super block
Diffstat (limited to 'sbin/fsck_ffs')
-rw-r--r-- | sbin/fsck_ffs/utilities.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sbin/fsck_ffs/utilities.c b/sbin/fsck_ffs/utilities.c index 168cb8dab47..7a988ec5df0 100644 --- a/sbin/fsck_ffs/utilities.c +++ b/sbin/fsck_ffs/utilities.c @@ -1,4 +1,4 @@ -/* $OpenBSD: utilities.c,v 1.26 2006/04/02 00:48:35 deraadt Exp $ */ +/* $OpenBSD: utilities.c,v 1.27 2006/04/07 11:25:37 pedro Exp $ */ /* $NetBSD: utilities.c,v 1.18 1996/09/27 22:45:20 christos Exp $ */ /* @@ -34,7 +34,7 @@ #if 0 static char sccsid[] = "@(#)utilities.c 8.1 (Berkeley) 6/5/93"; #else -static const char rcsid[] = "$OpenBSD: utilities.c,v 1.26 2006/04/02 00:48:35 deraadt Exp $"; +static const char rcsid[] = "$OpenBSD: utilities.c,v 1.27 2006/04/07 11:25:37 pedro Exp $"; #endif #endif /* not lint */ @@ -256,6 +256,7 @@ ckfini(int markclean) (void)close(fsreadfd); return; } + sblock.fs_flags &= ~FS_FLAGS_UPDATED; /* Force update on next mount */ flush(fswritefd, &sblk); if (havesb && sblk.b_bno != SBOFF / dev_bsize && !preen && reply("UPDATE STANDARD SUPERBLOCK")) { |