diff options
author | roam <roam@FreeBSD.org> | 2002-12-02 20:38:12 +0000 |
---|---|---|
committer | roam <roam@FreeBSD.org> | 2002-12-02 20:38:12 +0000 |
commit | d5bbe3c01c78626ed02452d3eaac3327abe4ccd4 (patch) | |
tree | 8ffc3b49c20fdbf55fc31617a73d700d0450e9b5 /usr.bin/finger | |
parent | a396a56831490577d914ea4c1d26aec5728b6cdc (diff) | |
download | FreeBSD-src-d5bbe3c01c78626ed02452d3eaac3327abe4ccd4.zip FreeBSD-src-d5bbe3c01c78626ed02452d3eaac3327abe4ccd4.tar.gz |
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
Diffstat (limited to 'usr.bin/finger')
-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 240cbca..a3c40b5 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) { |