Re: user/3349: ftp-proxy does not handle multi-line replies RFC 959 complient
The following reply was made to PR user/3349; it has been noted by GNATS.
From: "Andreas Taegener" <taegener@eideltown.de>
To: "GNATS Filer" <gnats@openbsd.org>
Cc:
Subject: Re: user/3349: ftp-proxy does not handle multi-line replies RFC 959 complient
Date: Sun, 13 Jul 2003 17:57:41 +0200 (CED)
Sorry, I just saw that the attached diff file is included in the bug
tracking system as base64 encoded text.
To have the diff in a more convenient way present I have included the
content of the file this time in the e-mail body between [START] and [END].
Please excuse the inconvenience.
[START]
845a846
> static int continuingCode = 0; /* AT: used for multi-line reply
patch */
869c870,886
< }
---
> }
>
> /*
> * AT: RFC 959 says that a multi-line reply starts with "nnn-"
> * AT: (nnn is a 3 digit code) and ends with "mmm ". nnn and mmm
> * AT: should be the same.
> * AT: Also it says that lines which start with 3 digits within
875,879c892,908
< }
< if (*p == '-')
< continuing = 1;
< else
< continuing = 0;
---
> }
> if (*p == '-') {
> continuing = 1;
> continuingCode = code;
> }
> else {
> /*
> * AT: The following if-block is used to ignore 3-digit
> * AT: numbers at the beginning of a line within a
> * AT: multi-line reply if the number does not match
> * AT: the 3-digit code of the first line of this reply.
> */
> if (continuingCode == code) {
> continuing = 0;
> continuingCode = 0;
> }
> }
[END]
Received on Sun Jul 13 13:53:19 2003
This archive was generated by hypermail 2.1.8
: Wed Aug 23 2006 - 13:29:59 EDT
|