summaryrefslogtreecommitdiff
path: root/system/libssh2/test-sshd.patch
diff options
context:
space:
mode:
Diffstat (limited to 'system/libssh2/test-sshd.patch')
-rw-r--r--system/libssh2/test-sshd.patch21
1 files changed, 6 insertions, 15 deletions
diff --git a/system/libssh2/test-sshd.patch b/system/libssh2/test-sshd.patch
index 5daa8ce00..a4bf65615 100644
--- a/system/libssh2/test-sshd.patch
+++ b/system/libssh2/test-sshd.patch
@@ -1,21 +1,12 @@
---- libssh2-1.9.0/tests/ssh2.sh 2010-10-25 17:15:14.000000000 -0500
-+++ libssh2-1.9.0/tests/ssh2.sh 2019-09-11 18:52:25.932354801 -0500
-@@ -28,6 +28,7 @@ $SSHD -f /dev/null -h "$srcdir"/etc/host
- -o 'UsePrivilegeSeparation no' \
- -o 'StrictModes no' \
- -D \
-+ -e \
- $libssh2_sshd_params &
- sshdpid=$!
-
---- libssh2-1.9.0/tests/ssh2.c 2019-03-26 08:08:54.000000000 -0500
-+++ libssh2-1.9.0/tests/ssh2.c 2019-09-11 19:38:03.782403778 -0500
-@@ -147,20 +147,6 @@ int main(int argc, char *argv[])
+--- libssh2-1.9.0/tests/test_ssh2.c 2019-03-26 08:08:54.000000000 -0500
++++ libssh2-1.9.0/tests/test_ssh2.c 2019-09-11 19:38:03.782403778 -0500
+@@ -225,21 +225,6 @@ int main(int argc, char *argv[])
*/
libssh2_channel_setenv(channel, "FOO", "bar");
- /* Request a terminal with 'vanilla' terminal emulation
-- * See /etc/termcap for more options
+- * See /etc/termcap for more options. This is useful when opening
+- * an interactive shell.
- */
- if(libssh2_channel_request_pty(channel, "vanilla")) {
- fprintf(stderr, "Failed requesting pty\n");
@@ -28,6 +19,6 @@
- goto shutdown;
- }
-
- ec = 0;
+ rc = 0;
skip_shell: