Tighten close_file, fix SYSLINUX new file API syslinux-3.70-pre2
authorH. Peter Anvin <hpa@zytor.com>
Thu, 28 Feb 2008 00:17:23 +0000 (16:17 -0800)
committerH. Peter Anvin <hpa@zytor.com>
Thu, 28 Feb 2008 00:17:23 +0000 (16:17 -0800)
commitb89d1480c656a4f4642cb84ed18d9214faca1308
tree248e3cb35062f518635faede223ee5d178a9c487
parent173ac73758fde865cfb374d27411439629e09b75
Tighten close_file, fix SYSLINUX new file API

Define close_file slightly tighter:

       - It is permitted to call close_file with a zero filehandle
       - close_file zeros SI

Fix the handling of the new API in SYSLINUX.  It appears file_left was
never actually initialized; it simply didn't matter since the old code
would either trip on reaching the end of the FAT chain or count the
data it needed.  Now operating according to spec.
comboot.inc
extlinux.asm
isolinux.asm
ldlinux.asm