Differences From Artifact [42258a96c6]:
- File src/http_transport.c — part of check-in [d07689d11d] at 2024-02-05 22:00:00 on branch ssh-path-prefix — Omit the PATH= prefix on the ssh fossil syncs unless the first attempt to contact the remote fails. Change the prefix to include common directories for Fossil on Macs. Remember whether or not the PATH= prefix is needed based on hostname. See the discussion at [forum:/forumpost/4903cb4b691af7ce|forum thread 4903cb4b691af7ce]. (user: drh size: 13683)
To Artifact [83b0d4c62b]:
- File src/http_transport.c — part of check-in [bcf6abe5b6] at 2024-02-06 03:22:10 on branch ssh-path-prefix — Don't use the ssh file descriptor as an indicator that we should be using SSH transport. Arguably we could also just reset sshIn to 0, but I think this is better. (user: andybradford size: 13693) [more...]
| ︙ | ︙ | |||
318 319 320 321 322 323 324 |
/*
** Read N bytes of content directly from the wire and write into
** the buffer.
*/
static int transport_fetch(UrlData *pUrlData, char *zBuf, int N){
int got;
| | | 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 |
/*
** Read N bytes of content directly from the wire and write into
** the buffer.
*/
static int transport_fetch(UrlData *pUrlData, char *zBuf, int N){
int got;
if( pUrlData->isSsh ){
int x;
int wanted = N;
got = 0;
while( wanted>0 ){
x = read(sshIn, &zBuf[got], wanted);
if( x<=0 ) break;
got += x;
|
| ︙ | ︙ |