Date: Mon, 2 Mar 2009 03:08:46 +0000 (UTC) From: Cy Schubert <cy@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r189267 - head/sbin/dump Message-ID: <200903020308.n2238kpb063385@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200903020308.n2238kpb063385>