aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2008-06-22 21:25:44 -0700
committerH. Peter Anvin <hpa@zytor.com>2008-06-22 21:25:44 -0700
commitaefc9dd8f1b069ce8e97e187aabe56b43c69651b (patch)
tree73a6af5a8d2bd5777348648df457f5c57b3a1ae1
parentc66981883b45cd493a4312360db7ce09dfa0695e (diff)
downloadsyslinux.git-aefc9dd8f1b069ce8e97e187aabe56b43c69651b.tar.gz
syslinux.git-aefc9dd8f1b069ce8e97e187aabe56b43c69651b.tar.xz
syslinux.git-aefc9dd8f1b069ce8e97e187aabe56b43c69651b.zip
extlinux: actually fix the closing of a file on EOFsyslinux-3.70-pre22
Actually close the file properly on EOF, even if not aligned to a sector boundary. Sigh.
-rw-r--r--core/extlinux.asm3
1 files changed, 1 insertions, 2 deletions
diff --git a/core/extlinux.asm b/core/extlinux.asm
index 838f718c..b0a82407 100644
--- a/core/extlinux.asm
+++ b/core/extlinux.asm
@@ -1506,8 +1506,7 @@ getfssec:
sub [si+file_bytesleft],ecx
jnbe .noteof ; CF=0 in this case
add ecx,[si+file_bytesleft] ; Actual number of bytes left
- sub [si+file_bytesleft],ecx ; ... all read
- xor si,si ; File closed
+ call close_file
stc ; We hit EOF
.noteof:
pop edi