Make a CR/LF sequence measure up to its name: the order of the CR and LF

characters was reversed, resulting in some network appliances, including
at least some NAS devices from Ascend, not recognizing our finger(1)
request.

PR:		45914
Submitted by:	J R Matthews <jrm@delta-e.com.au>
Approved by:	re (rwatson)
MFC after:	2 weeks
This commit is contained in:
Peter Pentchev 2002-12-02 20:38:12 +00:00
parent c525f9c9a4
commit 8c9589bdea
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=107528

View File

@ -116,7 +116,7 @@ do_protocol(const char *name, const struct addrinfo *ai)
struct iovec iov[3];
struct msghdr msg;
static char slash_w[] = "/W ";
static char neteol[] = "\n\r";
static char neteol[] = "\r\n";
s = socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol);
if (s < 0) {