summaryrefslogtreecommitdiff
path: root/system/libssh2/test-sshd.patch
blob: a4bf656159b8647e5ec04e5fba957d05b5ec63ce (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
--- 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. This is useful when opening
-     * an interactive shell.
-     */
-    if(libssh2_channel_request_pty(channel, "vanilla")) {
-        fprintf(stderr, "Failed requesting pty\n");
-        goto skip_shell;
-    }
-
-    /* Open a SHELL on that pty */
-    if(libssh2_channel_shell(channel)) {
-        fprintf(stderr, "Unable to request shell on allocated pty\n");
-        goto shutdown;
-    }
-
     rc = 0;
 
   skip_shell: