Date: Wed, 18 May 2016 00:33:09 +0000 (UTC) From: "Pedro F. Giffuni" <pfg@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org Subject: svn commit: r300099 - stable/10/sbin/fsck_msdosfs Message-ID: <201605180033.u4I0X9pO051793@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: pfg Date: Wed May 18 00:33:08 2016 New Revision: 300099 URL: https://svnweb.freebsd.org/changeset/base/300099 Log: MFC r299089: fsck_msdosfs: Adjust a check. The on-disk FAT array does not include anything before CLUST_FIRST, compensate in size check. Obtained from: NetBSD (CVS Rev. 1.20) Modified: stable/10/sbin/fsck_msdosfs/boot.c Directory Properties: stable/10/ (props changed) Modified: stable/10/sbin/fsck_msdosfs/boot.c ============================================================================== --- stable/10/sbin/fsck_msdosfs/boot.c Wed May 18 00:22:52 2016 (r300098) +++ stable/10/sbin/fsck_msdosfs/boot.c Wed May 18 00:33:08 2016 (r300099) @@ -221,7 +221,7 @@ readboot(int dosfs, struct bootblock *bo break; } - if (boot->NumFatEntries < boot->NumClusters) { + if (boot->NumFatEntries < boot->NumClusters - CLUST_FIRST) { pfatal("FAT size too small, %u entries won't fit into %u sectors\n", boot->NumClusters, boot->FATsecs); return FSFATAL;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201605180033.u4I0X9pO051793>