Fossil SCM
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.
Commit
bcf6abe5b6e0cc7b04eadd5438a42121225c581d9daed33a6b219376dcb32dfd
Parent
97b3f955b2a6431…
1 file changed
+1
-1
+1
-1
| --- src/http_transport.c | ||
| +++ src/http_transport.c | ||
| @@ -320,11 +320,11 @@ | ||
| 320 | 320 | ** Read N bytes of content directly from the wire and write into |
| 321 | 321 | ** the buffer. |
| 322 | 322 | */ |
| 323 | 323 | static int transport_fetch(UrlData *pUrlData, char *zBuf, int N){ |
| 324 | 324 | int got; |
| 325 | - if( sshIn ){ | |
| 325 | + if( pUrlData->isSsh ){ | |
| 326 | 326 | int x; |
| 327 | 327 | int wanted = N; |
| 328 | 328 | got = 0; |
| 329 | 329 | while( wanted>0 ){ |
| 330 | 330 | x = read(sshIn, &zBuf[got], wanted); |
| 331 | 331 |
| --- src/http_transport.c | |
| +++ src/http_transport.c | |
| @@ -320,11 +320,11 @@ | |
| 320 | ** Read N bytes of content directly from the wire and write into |
| 321 | ** the buffer. |
| 322 | */ |
| 323 | static int transport_fetch(UrlData *pUrlData, char *zBuf, int N){ |
| 324 | int got; |
| 325 | if( sshIn ){ |
| 326 | int x; |
| 327 | int wanted = N; |
| 328 | got = 0; |
| 329 | while( wanted>0 ){ |
| 330 | x = read(sshIn, &zBuf[got], wanted); |
| 331 |
| --- src/http_transport.c | |
| +++ src/http_transport.c | |
| @@ -320,11 +320,11 @@ | |
| 320 | ** Read N bytes of content directly from the wire and write into |
| 321 | ** the buffer. |
| 322 | */ |
| 323 | static int transport_fetch(UrlData *pUrlData, char *zBuf, int N){ |
| 324 | int got; |
| 325 | if( pUrlData->isSsh ){ |
| 326 | int x; |
| 327 | int wanted = N; |
| 328 | got = 0; |
| 329 | while( wanted>0 ){ |
| 330 | x = read(sshIn, &zBuf[got], wanted); |
| 331 |