Initial push
[termux-packages] / packages / busybox / telnetd.patch
1 diff -u -r ../busybox-1.22.1/networking/telnetd.c ./networking/telnetd.c
2 --- ../busybox-1.22.1/networking/telnetd.c 2014-01-09 19:15:44.000000000 +0100
3 +++ ./networking/telnetd.c 2014-01-20 08:47:37.000000000 +0100
4 @@ -31,8 +31,8 @@
5 //usage: "\n -K Close connection as soon as login exits"
6 //usage: "\n (normally wait until all programs close slave pty)"
7 //usage: IF_FEATURE_TELNETD_STANDALONE(
8 -//usage: "\n -p PORT Port to listen on"
9 -//usage: "\n -b ADDR[:PORT] Address to bind to"
10 +//usage: "\n -p PORT Port to listen on (default 8023)"
11 +//usage: "\n -b ADDR[:PORT] Address to bind to (default *:8023)"
12 //usage: "\n -F Run in foreground"
13 //usage: "\n -i Inetd mode"
14 //usage: IF_FEATURE_TELNETD_INETD_WAIT(
15 @@ -535,7 +535,7 @@
16 } else {
17 master_fd = 0;
18 if (!(opt & OPT_WAIT)) {
19 - unsigned portnbr = 23;
20 + unsigned portnbr = 8023;
21 if (opt & OPT_PORT)
22 portnbr = xatou16(opt_portnbr);
23 master_fd = create_and_bind_stream_or_die(opt_bindaddr, portnbr);