Package: ftplib / 4.0-1-2


Package Version Patches format
ftplib 4.0-1-2 3.0 (quilt)

Patch series

view the series file
Patch File delta Description
fix ascii read without eol | (download)

src/ftplib.c | 1 0 + 1 - 0 !
1 file changed, 1 deletion(-)

 fix reading ftp data is ascii mode

In ASCII mode, if you don't have a line in the next block that you're
trying to read, then ftplib would set the first character to '\0'.

Upstream probably intented to return an empty string when requesting
to read only 1 character since that doesn't make much sense when the
EOL delimiter is 2 characters already (\r\n). However, due to the
way data is read, max can be set to 1 just after having read max-1
legitimate bytes and we should not be overwriting the first byte.

Improve Makefile to respect CFLAGS CPPFLAGS LDFLAGS.patch | (download)

src/Makefile | 10 5 + 5 - 0 !
1 file changed, 5 insertions(+), 5 deletions(-)

 improve makefile to respect cflags/cppflags/ldflags