When a STAT command is sent to ftpd as an out-of-band transmission during

a file transfer, the command was mishandled on every other receipt of the
command.

PR:		13261
Submitted by:	Ian Lepore <ian@plutotech.com>
This commit is contained in:
Michael Haro 1999-09-12 01:27:46 +00:00
parent da600884bd
commit 9db4bbf32a

View file

@ -1968,6 +1968,7 @@ myoob(signo)
longjmp(urgcatch, 1);
}
if (strcmp(cp, "STAT\r\n") == 0) {
tmpline[0] = '\0';
if (file_size != (off_t) -1)
reply(213, "Status: %qd of %qd bytes transferred",
byte_count, file_size);