Fossil

Check-in [66a45382]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:attemp to fix ssh problem on debian linux host when non interactive shell still print some message (motd and mail checking stuff).
*** not really working yet..
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | mg_sshfix
Files: files | file ages | folders
SHA1:66a45382ebd52f0216ea375f85aaf89a640798cd
User & Date: mgagnon 2012-09-12 00:35:59
Original User & Date: meeks 2012-09-12 00:35:59
Context
2012-09-12
02:19
work time to time.. *** rely on a delay, which is not good don't work all the time... need to build more solid logic.. check-in: 5d00d241 user: mgagnon tags: mg_sshfix
00:35
attemp to fix ssh problem on debian linux host when non interactive shell still print some message (motd and mail checking stuff).
*** not really working yet..
check-in: 66a45382 user: mgagnon tags: mg_sshfix
2012-09-11
18:49
enable unicode commandline for MinGW/MinGW-w64 as well

remove unused MINGW_BROKEN_MAINARGS

check-in: 274d8a1d user: jan.nijtmans tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/http_transport.c.

156
157
158
159
160
161
162




163
164
165
166
167
168
169
170
171
172
      fossil_fatal("cannot start ssh tunnel using [%b]", &zCmd);
    }
    blob_reset(&zCmd);

    /* Send an "echo" command to the other side to make sure that the
    ** connection is up and working.
    */




    fprintf(sshOut, "echo test\n");
    fflush(sshOut);
    zIn = fossil_malloc(16000);
    sshin_read(zIn, 16000);
    if( memcmp(zIn, "test", 4)!=0 ){
      pclose2(sshIn, sshOut, sshPid);
      fossil_fatal("ssh connection failed: [%s]", zIn);
    }
    fossil_free(zIn);
  }







>
>
>
>


<







156
157
158
159
160
161
162
163
164
165
166
167
168

169
170
171
172
173
174
175
      fossil_fatal("cannot start ssh tunnel using [%b]", &zCmd);
    }
    blob_reset(&zCmd);

    /* Send an "echo" command to the other side to make sure that the
    ** connection is up and working.
    */
    zIn = fossil_malloc(16000);
    fprintf(sshOut, "echo .\n");
    fflush(sshOut);
    sshin_read(zIn, 16000);
    fprintf(sshOut, "echo test\n");
    fflush(sshOut);

    sshin_read(zIn, 16000);
    if( memcmp(zIn, "test", 4)!=0 ){
      pclose2(sshIn, sshOut, sshPid);
      fossil_fatal("ssh connection failed: [%s]", zIn);
    }
    fossil_free(zIn);
  }