From d365bee0c891b0d20e0b98c8ab5d3fc7fccdcb98 Mon Sep 17 00:00:00 2001 From: riz Date: Sun, 12 Dec 2010 22:48:59 +0000 Subject: [PATCH] Remove bogus check which is not actually testing anything useful, and depending on file system data, can actually be a false error. Fixes what I was actually testing for in bin/44209, though the actual problem was not what I originally described. --- sbin/resize_ffs/resize_ffs.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/sbin/resize_ffs/resize_ffs.c b/sbin/resize_ffs/resize_ffs.c index 1c2627a4c701..1a2d647bef58 100644 --- a/sbin/resize_ffs/resize_ffs.c +++ b/sbin/resize_ffs/resize_ffs.c @@ -1,4 +1,4 @@ -/* $NetBSD: resize_ffs.c,v 1.20 2010/12/12 19:53:23 mhitch Exp $ */ +/* $NetBSD: resize_ffs.c,v 1.21 2010/12/12 22:48:59 riz Exp $ */ /* From sources sent on February 17, 2003 */ /*- * As its sole author, I explicitly place this code in the public @@ -1940,9 +1940,6 @@ main(int argc, char **argv) continue; if (oldsb->fs_magic == FS_UFS1_MAGIC) break; - if (oldsb->fs_old_flags & FS_FLAGS_UPDATED) - err(EXIT_FAILURE, - "Can't resize ffsv2 format superblock!"); } if (where == (off_t)-1) errx(EXIT_FAILURE, "Bad magic number");