ftpd: Fix RETR for small and empty files
All checks were successful
Build system / Check kernel codestyle (pull_request) Successful in 1m5s
Build system / Build (pull_request) Successful in 15m59s

This commit was merged in pull request #307.
This commit is contained in:
Igor Shutrov
2026-01-06 00:25:45 +05:00
committed by Burer
parent 10d9e9f36f
commit 000288ce8b

View File

@@ -998,7 +998,9 @@ cmdRETR:
cmp eax, -1 cmp eax, -1
je .cannot_open ; FIXME: this is not the correct error je .cannot_open ; FIXME: this is not the correct error
push eax
invoke con_write_asciiz, str2 invoke con_write_asciiz, str2
pop eax
push eax ebx push eax ebx
mov esi, eax mov esi, eax