Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/telnet fix handling of port number preceded by minus...
details: https://anonhg.NetBSD.org/src/rev/4eed87d9d936
branches: trunk
changeset: 474809:4eed87d9d936
user: jtk <jtk%NetBSD.org@localhost>
date: Wed Jul 21 13:24:56 1999 +0000
description:
fix handling of port number preceded by minus sign to restore documented behavior
diffstat:
usr.bin/telnet/commands.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diffs (29 lines):
diff -r 447455dfc0f2 -r 4eed87d9d936 usr.bin/telnet/commands.c
--- a/usr.bin/telnet/commands.c Wed Jul 21 13:19:10 1999 +0000
+++ b/usr.bin/telnet/commands.c Wed Jul 21 13:24:56 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: commands.c,v 1.29 1999/07/14 20:47:41 itojun Exp $ */
+/* $NetBSD: commands.c,v 1.30 1999/07/21 13:24:56 jtk Exp $ */
/*
* Copyright (C) 1997 and 1998 WIDE Project.
@@ -67,7 +67,7 @@
#if 0
static char sccsid[] = "@(#)commands.c 8.4 (Berkeley) 5/30/95";
#else
-__RCSID("$NetBSD: commands.c,v 1.29 1999/07/14 20:47:41 itojun Exp $");
+__RCSID("$NetBSD: commands.c,v 1.30 1999/07/21 13:24:56 jtk Exp $");
#endif
#endif /* not lint */
@@ -2268,6 +2268,10 @@
if (!portp) {
telnetport = 1;
portp = "telnet";
+ } else if (portp[0] == '-') {
+ /* use telnet negotiation if port number/name preceded by minus sign */
+ telnetport = 1;
+ portp++;
}
memset(&hints, 0, sizeof(hints));
Home |
Main Index |
Thread Index |
Old Index