summaryrefslogtreecommitdiff
path: root/sys/arch/sun3/stand/installboot/installboot.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1995-11-13 04:07:18 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1995-11-13 04:07:18 +0000
commitce7ed67960abd014131f8d65093ca73a71d78353 (patch)
tree84c70581c3d5014c9280101724d13ff86d785a53 /sys/arch/sun3/stand/installboot/installboot.c
parent4812bae1cc75698bab2915e6b1116f596d703cf7 (diff)
accept ufs or ffs
Diffstat (limited to 'sys/arch/sun3/stand/installboot/installboot.c')
-rw-r--r--sys/arch/sun3/stand/installboot/installboot.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/arch/sun3/stand/installboot/installboot.c b/sys/arch/sun3/stand/installboot/installboot.c
index a637441d371..b79070bbc2f 100644
--- a/sys/arch/sun3/stand/installboot/installboot.c
+++ b/sys/arch/sun3/stand/installboot/installboot.c
@@ -1,4 +1,4 @@
-/* $NetBSD: installboot.c,v 1.3 1995/09/23 03:40:28 gwr Exp $ */
+/* $NetBSD: installboot.c,v 1.4 1995/11/07 23:01:40 gwr Exp $ */
/*
* Copyright (c) 1994 Paul Kranenburg
@@ -298,8 +298,10 @@ int devfd;
if (fstatfs(fd, &statfsbuf) != 0)
err(1, "statfs: %s", boot);
- if (strncmp(statfsbuf.f_fstypename, "ufs", MFSNAMELEN))
- errx(1, "%s: must be on a UFS filesystem", boot);
+ if (strncmp(statfsbuf.f_fstypename, "ffs", MFSNAMELEN) &&
+ strncmp(statfsbuf.f_fstypename, "ufs", MFSNAMELEN) ) {
+ errx(1, "%s: must be on an FFS filesystem", boot);
+ }
if (fsync(fd) != 0)
err(1, "fsync: %s", boot);