Author: pulkomandy Date: 2011-10-31 23:05:24 +0100 (Mon, 31 Oct 2011) New Revision: 43049 Changeset: https://dev.haiku-os.org/changeset/43049 Ticket: https://dev.haiku-os.org/ticket/2663 Modified: haiku/trunk/src/bin/network/telnet/main.c Log: 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. Modified: haiku/trunk/src/bin/network/telnet/main.c =================================================================== --- haiku/trunk/src/bin/network/telnet/main.c 2011-10-31 22:01:29 UTC (rev 43048) +++ haiku/trunk/src/bin/network/telnet/main.c 2011-10-31 22:05:24 UTC (rev 43049) @@ -156,6 +156,9 @@ #else #define IPSECOPT #endif + + crlf = 1; + while ((ch = getopt(argc, argv, "468EKLNS:X:acde:fFk:l:n:rs:uxy" IPSECOPT)) != -1) #undef IPSECOPT