Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: [netbsd-11] src/usr.bin/ftp



Module Name:    src
Committed By:   martin
Date:           Thu Jan 22 20:00:00 UTC 2026

Modified Files:
        src/usr.bin/ftp [netbsd-11]: extern.h ftp.c util.c version.h

Log Message:
Pull up following revision(s) (requested by lukem in ticket #152):

        usr.bin/ftp/ftp.c: revision 1.179
        usr.bin/ftp/version.h: revision 1.101
        usr.bin/ftp/util.c: revision 1.169
        usr.bin/ftp/extern.h: revision 1.85

ftp: fix ascii transfers with progress bar

Handle stdio interruption by signals and improve error handling
in getc() and putc() on the control and data channels.

Provide ftp_getc() and ftp_putc() wrappers that:
- Retry the operation on EINTR or EAGAIN instead of failing.
- Store other error codes in a return variable separate to errno,
  and use that variable in ferror() handling, for more correct
  error messages.

Fixes the progress bar display in ascii mode transfers.
(Note that I haven't fixed interrupted reads from stdin or
writes to ttyout; that's a much larger refactor that's out of scope).

Fix PR bin/59587 from Johnny Billquist, with the fix
inspired by the patch in that PR.


To generate a diff of this commit:
cvs rdiff -u -r1.84 -r1.84.2.1 src/usr.bin/ftp/extern.h
cvs rdiff -u -r1.178 -r1.178.2.1 src/usr.bin/ftp/ftp.c
cvs rdiff -u -r1.168 -r1.168.2.1 src/usr.bin/ftp/util.c
cvs rdiff -u -r1.99.2.1 -r1.99.2.2 src/usr.bin/ftp/version.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index