You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
diff -u -r ../busybox-1.25.1/networking/telnetd.c ./networking/telnetd.c
|
|
|
|
--- ../busybox-1.25.1/networking/telnetd.c 2016-10-07 10:47:47.000000000 -0400
|
|
|
|
+++ ./networking/telnetd.c 2016-10-08 17:49:55.717890508 -0400
|
|
|
|
@@ -86,8 +86,9 @@
|
|
|
|
#define G (*(struct globals*)bb_common_bufsiz1)
|
|
|
|
#define INIT_G() do { \
|
|
|
|
setup_common_bufsiz(); \
|
|
|
|
- G.loginpath = "/bin/login"; \
|
|
|
|
- G.issuefile = "/etc/issue.net"; \
|
|
|
|
+ struct passwd* pwd = getpwuid(getuid()); \
|
|
|
|
+ G.loginpath = pwd->pw_shell; \
|
|
|
|
+ G.issuefile = "@TERMUX_PREFIX@/etc/issue.net"; \
|
|
|
|
} while (0)
|
|
|
|
|
|
|
|
|
|
|
|
@@ -529,7 +530,7 @@
|
|
|
|
} else {
|
|
|
|
master_fd = 0;
|
|
|
|
if (!(opt & OPT_WAIT)) {
|
|
|
|
- unsigned portnbr = 23;
|
|
|
|
+ unsigned portnbr = 8023;
|
|
|
|
if (opt & OPT_PORT)
|
|
|
|
portnbr = xatou16(opt_portnbr);
|
|
|
|
master_fd = create_and_bind_stream_or_die(opt_bindaddr, portnbr);
|