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.
This commit is contained in:
riz 2010-12-12 22:48:59 +00:00
parent 230ccda64c
commit d365bee0c8
1 changed files with 1 additions and 4 deletions

View File

@ -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 */ /* From sources sent on February 17, 2003 */
/*- /*-
* As its sole author, I explicitly place this code in the public * As its sole author, I explicitly place this code in the public
@ -1940,9 +1940,6 @@ main(int argc, char **argv)
continue; continue;
if (oldsb->fs_magic == FS_UFS1_MAGIC) if (oldsb->fs_magic == FS_UFS1_MAGIC)
break; break;
if (oldsb->fs_old_flags & FS_FLAGS_UPDATED)
err(EXIT_FAILURE,
"Can't resize ffsv2 format superblock!");
} }
if (where == (off_t)-1) if (where == (off_t)-1)
errx(EXIT_FAILURE, "Bad magic number"); errx(EXIT_FAILURE, "Bad magic number");