From 036dbaa082f1974246d1d7d21a8e163559642485 Mon Sep 17 00:00:00 2001 From: Glenn L McGrath Date: Sat, 17 Jan 2004 05:03:31 +0000 Subject: Modify bb_lookup_port to allow the protocol to be specified, allowing /etc/services support for inetd, netcat and tftp. --- networking/telnet.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'networking/telnet.c') diff --git a/networking/telnet.c b/networking/telnet.c index 110c9d151..1b71bf26a 100644 --- a/networking/telnet.c +++ b/networking/telnet.c @@ -599,7 +599,7 @@ extern int telnet_main(int argc, char** argv) bb_show_usage(); bb_lookup_host(&s_in, argv[1]); - s_in.sin_port = bb_lookup_port((argc == 3) ? argv[2] : "telnet", 23); + s_in.sin_port = bb_lookup_port((argc == 3) ? argv[2] : "telnet", "tcp", 23); G.netfd = xconnect(&s_in); -- cgit v1.2.3