From a40e8645e2c20a5ea17af2264ca3150542b81a9b Mon Sep 17 00:00:00 2001 From: Adrien Destugues Date: Mon, 31 Oct 2011 22:05:24 +0000 Subject: [PATCH] Switch the default value of the "crlf" option in telnet. This means lines are ended with \r\n instead of \r\0. Both are accepted in most telnet servers, as there is some unclear wording in the telnet RFC. However, using \r\n allows to use telnet for other stuff, like connecting to an SMTP server. Debian Linux telnet client also uses that by default (likely other Linuces use the same). Fixes #2663. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@43049 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/bin/network/telnet/main.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/bin/network/telnet/main.c b/src/bin/network/telnet/main.c index 0395772b4f..628ab50c5c 100644 --- a/src/bin/network/telnet/main.c +++ b/src/bin/network/telnet/main.c @@ -156,6 +156,9 @@ main(int argc, char *argv[]) #else #define IPSECOPT #endif + + crlf = 1; + while ((ch = getopt(argc, argv, "468EKLNS:X:acde:fFk:l:n:rs:uxy" IPSECOPT)) != -1) #undef IPSECOPT