Skip to content

ftp: simplify the 150/126 size scanner#18984

Closed
bagder wants to merge 2 commits into
masterfrom
bagder/ftp-size
Closed

ftp: simplify the 150/126 size scanner#18984
bagder wants to merge 2 commits into
masterfrom
bagder/ftp-size

Conversation

@bagder

@bagder bagder commented Oct 9, 2025

Copy link
Copy Markdown
Member

The file size is weirdly returned in a 150 or 126 response as "XXX bytes" mentioned somewhere in the response string. This is a rewrite of the size scanner to replace the strange strstr() + backwards search from before with a plain forward search until '[number] + " bytes"' is a match.

The file size is weirdly returned in a 150 or 126 response as "XXX
bytes" mentioned somewhere in the response string. This is a rewrite of
the size scanner to replace the strange strstr() + backwards search from
before with a plain forward search until '[number] + " bytes"' is a
match.
@bagder bagder added the FTP label Oct 9, 2025
@bagder
bagder marked this pull request as ready for review October 9, 2025 20:50
@bagder bagder closed this in 6c03381 Oct 9, 2025
@bagder
bagder deleted the bagder/ftp-size branch October 9, 2025 21:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

1 participant