fix pr 2977 -- only try to dump ufs/ffs partitions

This commit is contained in:
perry 1997-01-16 22:00:30 +00:00
parent 30f35224e5
commit 5714664cf5
1 changed files with 5 additions and 2 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: optr.c,v 1.4 1996/05/18 16:16:17 jtk Exp $ */
/* $NetBSD: optr.c,v 1.5 1997/01/16 22:00:30 perry Exp $ */
/*-
* Copyright (c) 1980, 1988, 1993
@ -37,7 +37,7 @@
#if 0
static char sccsid[] = "@(#)optr.c 8.2 (Berkeley) 1/6/94";
#else
static char rcsid[] = "$NetBSD: optr.c,v 1.4 1996/05/18 16:16:17 jtk Exp $";
static char rcsid[] = "$NetBSD: optr.c,v 1.5 1997/01/16 22:00:30 perry Exp $";
#endif
#endif /* not lint */
@ -444,6 +444,9 @@ getfstab()
strcmp(fs->fs_type, FSTAB_RO) &&
strcmp(fs->fs_type, FSTAB_RQ))
continue;
if (strcmp(fs->fs_vfstype, "ufs") &&
strcmp(fs->fs_vfstype, "ffs"))
continue;
fs = allocfsent(fs);
if ((pf = (struct pfstab *)malloc(sizeof (*pf))) == NULL)
quit("%s\n", strerror(errno));