NetBSD Problem Report #1407
From gnats Sat Aug 26 13:53:12 1995
Received: from dgate.org (root@dgate.org [198.6.245.153]) by sun-lamp.pc.cs.cmu.edu (8.6.11/8.6.10) with ESMTP id NAA03134 for <gnats-bugs@gnats.netbsd.org>; Sat, 26 Aug 1995 13:53:10 -0400
Message-Id: <199508261859.SAA00343@dgate.org>
Date: Sat, 26 Aug 1995 18:59:28 GMT
From: "Brian R. Gaeke" <brg@dgate.org>
Reply-To: brg@dgate.org
To: gnats-bugs@gnats.netbsd.org
Subject: h[e[l[p]]] are not proper host names for telnet 'open'
X-Send-Pr-Version: 3.2
>Number: 1407
>Category: bin
>Synopsis: help, hel, he, h are not allowed as host names in telnet
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: bin-bug-people
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sat Aug 26 14:05:02 +0000 1995
>Closed-Date: Fri Jan 05 04:19:32 +0000 1996
>Last-Modified: Fri Jan 05 04:21:04 +0000 1996
>Originator: Brian R. Gaeke
>Release: NetBSD-current as of Sat Aug 26 03:51:28 1995
>Organization:
The Dimensional Gate Co.
>Environment:
Apple Macintosh IIci (68030) NetBSD/mac68k 1.0A
System: NetBSD cheese.dgate.org 1.0A NetBSD 1.0A (IICIMINIM) #1: Thu Aug 24 05:01:31 EDT 1995 root@iici.dgate.org:/usr/src/sys/arch/mac68k/compile/IICIMINIM mac68k
>Description:
telnet help, telnet hel, telnet he, telnet h, or (inside telnet)
the commands: open help, open hel, open he, open h do not attempt
to open a connection to specified host, rather they display a
dubiously useful help message. IMO it is not as useful to display
a help message in the case of the open command. Also ? can be used
to produce the same effect, and ? is very much less likely to be
a hostname than help.
>How-To-Repeat:
example% telnet help
usage: telnet [-l user] [-a] host-name [port]
example% telnet
telnet> open help
usage: open [-l user] [-a] host-name [port]
>Fix:
Change the applicable if (isprefix("help",*argv) || isprefix("?",*argv))
clauses in commands.c to be simply if (isprefix("?",*argv)).
One of these is at line 2102 of commands.c,v 1.8; I am not sure
if there are others that would need to be changed as well.
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed
State-Changed-By: tls
State-Changed-When: Thu Jan 4 23:19:32 EST 1996
State-Changed-Why:
Fixed, for the command-line case at least. I wonder if we should even have
"telnet ?" do the wrong thing -- it seems like a lousy syntax anyway.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.