From 6707a64c887687ec2f1e30c6d244100e1b7f0a54 Mon Sep 17 00:00:00 2001 From: lukem Date: Tue, 15 Jan 2002 07:41:50 +0000 Subject: [PATCH] If -F isn't given, only newfs(8) partitions of type `4.2BSD'. --- sbin/newfs/newfs.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sbin/newfs/newfs.c b/sbin/newfs/newfs.c index d946e2b1f3c9..18f2c2a69e46 100644 --- a/sbin/newfs/newfs.c +++ b/sbin/newfs/newfs.c @@ -1,4 +1,4 @@ -/* $NetBSD: newfs.c,v 1.54 2002/01/07 12:00:09 simonb Exp $ */ +/* $NetBSD: newfs.c,v 1.55 2002/01/15 07:41:50 lukem Exp $ */ /* * Copyright (c) 1983, 1989, 1993, 1994 @@ -43,7 +43,7 @@ __COPYRIGHT("@(#) Copyright (c) 1983, 1989, 1993, 1994\n\ #if 0 static char sccsid[] = "@(#)newfs.c 8.13 (Berkeley) 5/1/95"; #else -__RCSID("$NetBSD: newfs.c,v 1.54 2002/01/07 12:00:09 simonb Exp $"); +__RCSID("$NetBSD: newfs.c,v 1.55 2002/01/15 07:41:50 lukem Exp $"); #endif #endif /* not lint */ @@ -555,8 +555,8 @@ main(int argc, char *argv[]) pp = &lp->d_partitions[*cp - 'a']; if (pp->p_size == 0) errx(1, "`%c' partition is unavailable", *cp); - if (pp->p_fstype == FS_BOOT) - errx(1, "`%c' partition overlaps boot program", *cp); + if (pp->p_fstype != FS_BSDFFS) + errx(1, "`%c' partition type is not `4.2BSD'", *cp); } /* !Fflag && !mfs */ if (fssize == 0)