telnet help should telnet to a host named help, not display a usage
authorRuss Allbery <rra@stanford.edu>
Tue, 13 Jun 2006 16:03:12 +0000 (16:03 +0000)
committerRuss Allbery <rra@stanford.edu>
Tue, 13 Jun 2006 16:03:12 +0000 (16:03 +0000)
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

src/appl/telnet/telnet/commands.c

index cb3390d38c484b0cade3b5f9a33ff31fa6510517..f6c0fcdb447e85f09d0d1bb2152ad1530500c25e 100644 (file)
@@ -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;