notmuch: Update from 0.26.1 to 0.26.2
[termux-packages] / packages / busybox / telnetd.patch
CommitLineData
3d9d67c7
FF
1diff -u -r ../busybox-1.25.1/networking/telnetd.c ./networking/telnetd.c
2--- ../busybox-1.25.1/networking/telnetd.c 2016-10-07 10:47:47.000000000 -0400
3+++ ./networking/telnetd.c 2016-10-08 17:49:55.717890508 -0400
4@@ -86,8 +86,9 @@
5 #define G (*(struct globals*)bb_common_bufsiz1)
977ad1af 6 #define INIT_G() do { \
3d9d67c7 7 setup_common_bufsiz(); \
977ad1af
FF
8- G.loginpath = "/bin/login"; \
9- G.issuefile = "/etc/issue.net"; \
10+ struct passwd* pwd = getpwuid(getuid()); \
11+ G.loginpath = pwd->pw_shell; \
12+ G.issuefile = "@TERMUX_PREFIX@/etc/issue.net"; \
13 } while (0)
14
15
3d9d67c7 16@@ -529,7 +530,7 @@
59f0d218
FF
17 } else {
18 master_fd = 0;
19 if (!(opt & OPT_WAIT)) {
20- unsigned portnbr = 23;
21+ unsigned portnbr = 8023;
22 if (opt & OPT_PORT)
23 portnbr = xatou16(opt_portnbr);
24 master_fd = create_and_bind_stream_or_die(opt_bindaddr, portnbr);