From: Russ Allbery Date: Tue, 13 Jun 2006 16:03:12 +0000 (+0000) Subject: telnet help should telnet to a host named help, not display a usage X-Git-Tag: krb5-1.5-beta1~36 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=3fe0554a99d9a1d31ad00697abc1528ad7d0edaf;p=krb5.git telnet help should telnet to a host named help, not display a usage message. Only support ?, not help, to request help with the open command. The same change was made in netkit's telnet. Ticket: 3269 Component: krb5-appl Version_Reported: 1.4.2 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18124 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/appl/telnet/telnet/commands.c b/src/appl/telnet/telnet/commands.c index cb3390d38..f6c0fcdb4 100644 --- a/src/appl/telnet/telnet/commands.c +++ b/src/appl/telnet/telnet/commands.c @@ -2446,7 +2446,7 @@ tn(argc, argv) cmd = *argv; --argc; ++argv; while (argc) { - if (isprefix(*argv, "help") || isprefix(*argv, "?")) + if (isprefix(*argv, "?")) goto usage; if (strcmp(*argv, "-l") == 0) { --argc; ++argv;