Date: Thu, 17 Apr 1997 19:37:12 -0700 (PDT) From: David Greenman <davidg> To: CVS-committers, cvs-all, cvs-sys Subject: cvs commit: src/sys/kern kern_exec.c Message-ID: <199704180237.TAA26203@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
davidg 97/04/17 19:37:11 Branch: sys/kern RELENG_2_2 Modified: sys/kern kern_exec.c Log: Fixed two bugs that came into kern_exec just after the 2.2.1 release: 1) I wasn't assuring that the file size was large enough for the data to be contained in a FS block. Calling bread for a block when the data is in a fragment causes BAD things to happen, including file corruption. 2) I was not passing in a residual pointer to vn_rdwr(), and this caused "slow" mode image header reads that were less than the page size to fail with EIO. I now get the residual and properly zero the tail of the image header buffer, too. Revision Changes Path 1.47.2.7 +14 -7 src/sys/kern/kern_exec.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199704180237.TAA26203>