diff options
author | Peter Pentchev <roam@FreeBSD.org> | 2002-12-02 20:38:12 +0000 |
---|---|---|
committer | Peter Pentchev <roam@FreeBSD.org> | 2002-12-02 20:38:12 +0000 |
commit | 8c9589bdeac47f1b1c66ca970b9b7cff97f6df94 (patch) | |
tree | 8ffc3b49c20fdbf55fc31617a73d700d0450e9b5 /usr.bin/finger/net.c | |
parent | c525f9c9a4eec8648c13e21c835b8dd9ec339ba8 (diff) | |
download | src-test2-8c9589bdeac47f1b1c66ca970b9b7cff97f6df94.tar.gz src-test2-8c9589bdeac47f1b1c66ca970b9b7cff97f6df94.zip |
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
Notes
Notes:
svn path=/head/; revision=107528
Diffstat (limited to 'usr.bin/finger/net.c')
-rw-r--r-- | usr.bin/finger/net.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/finger/net.c b/usr.bin/finger/net.c index 240cbcadd4fa..a3c40b56929f 100644 --- a/usr.bin/finger/net.c +++ b/usr.bin/finger/net.c @@ -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) { |