svn commit: r189267 - head/sbin/dump
Cy Schubert
cy at FreeBSD.org
Sun Mar 1 19:08:47 PST 2009
Author: cy (ports committer)
Date: Mon Mar 2 03:08:46 2009
New Revision: 189267
URL: http://svn.freebsd.org/changeset/base/189267
Log:
Verify that the filesystem being referenced in fstab is indeed a UFS
filesystem. This avoids confusion with nullfs and unionfs filesystems
which reference the root of a UFS filesystem as a target.
PR: 116849
Approved by: kib
Modified:
head/sbin/dump/optr.c
Modified: head/sbin/dump/optr.c
==============================================================================
--- head/sbin/dump/optr.c Mon Mar 2 02:51:52 2009 (r189266)
+++ head/sbin/dump/optr.c Mon Mar 2 03:08:46 2009 (r189267)
@@ -318,9 +318,10 @@ dump_getfstab(void)
return;
}
while ((fs = getfsent()) != NULL) {
- if (strcmp(fs->fs_type, FSTAB_RW) &&
+ if ((strcmp(fs->fs_type, FSTAB_RW) &&
strcmp(fs->fs_type, FSTAB_RO) &&
- strcmp(fs->fs_type, FSTAB_RQ))
+ strcmp(fs->fs_type, FSTAB_RQ)) ||
+ strcmp(fs->fs_vfstype, "ufs"))
continue;
fs = allocfsent(fs);
if ((pf = (struct pfstab *)malloc(sizeof (*pf))) == NULL)
More information about the svn-src-all
mailing list