termux-packages/packages/openssh/servconf.c.patch

37 lines
1.1 KiB
Diff
Raw Normal View History

diff -u -r ../openssh-7.5p1/servconf.c ./servconf.c
--- ../openssh-7.5p1/servconf.c 2017-03-20 03:39:27.000000000 +0100
+++ ./servconf.c 2017-03-24 00:08:05.880913398 +0100
@@ -212,7 +212,7 @@
2015-06-13 01:03:31 +02:00
}
/* No certificates by default */
if (options->num_ports == 0)
- options->ports[options->num_ports++] = SSH_DEFAULT_PORT;
+ options->ports[options->num_ports++] = 8022 /*SSH_DEFAULT_PORT*/;
2015-07-12 03:47:52 +02:00
if (options->address_family == -1)
options->address_family = AF_UNSPEC;
2015-06-13 01:03:31 +02:00
if (options->listen_addrs == NULL)
@@ -336,9 +336,13 @@
assemble_algorithms(options);
- /* Turn privilege separation and sandboxing on by default */
if (use_privsep == -1)
+#ifdef __ANDROID__
+ use_privsep = PRIVSEP_OFF;
+#else
+ /* Turn privilege separation and sandboxing on by default */
use_privsep = PRIVSEP_ON;
+#endif
#define CLEAR_ON_NONE(v) \
do { \
@@ -675,7 +679,7 @@
2015-06-13 01:03:31 +02:00
u_int i;
if (options->num_ports == 0)
- options->ports[options->num_ports++] = SSH_DEFAULT_PORT;
+ options->ports[options->num_ports++] = 8022 /*SSH_DEFAULT_PORT*/;
if (options->address_family == -1)
options->address_family = AF_UNSPEC;
2015-07-12 03:47:52 +02:00