Subject: checksys prints incorrect overlay number +FIX (#192) Index: sys/conf/checksys.c 2.11BSD Description: The 'checksys' program (used to verify that a kernel is bootable) has an "off by one error" in the empty overlay error message. Repeat-By: Create a kernel with an empty overlay. Run 'checksys' and note that the overlay number will be one too low. Fix: Save the patch to a file and then: patch -p0 < /tmp/foo =============================cut here *** /sys/conf/checksys.c.old Sat Jan 22 19:39:13 1994 --- /sys/conf/checksys.c Sun Aug 28 10:53:38 1994 *************** *** 3,9 **** * All rights reserved. The Berkeley software License Agreement * specifies the terms and conditions for redistribution. * ! * @(#)checksys.c 1.4 (2.11BSD GTE) 1/9/94 */ /* --- 3,9 ---- * All rights reserved. The Berkeley software License Agreement * specifies the terms and conditions for redistribution. * ! * @(#)checksys.c 1.5 (2.11BSD GTE) 8/28/94 */ /* *************** *** 190,196 **** if (i < NOVL-1 && ovlhdr.ov_siz[i] == 0 && ovlhdr.ov_siz[i+1] > 0) { ! printf("overlay %d is empty and there are non-empty overlays following it.\n", i); errs++; texterrs++; } --- 190,196 ---- if (i < NOVL-1 && ovlhdr.ov_siz[i] == 0 && ovlhdr.ov_siz[i+1] > 0) { ! printf("overlay %d is empty and there are non-empty overlays following it.\n", i + 1); errs++; texterrs++; }