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.

andybradford 2024-02-06 03:22 ssh-path-prefix
Commit bcf6abe5b6e0cc7b04eadd5438a42121225c581d9daed33a6b219376dcb32dfd
1 file changed +1 -1
--- src/http_transport.c
+++ src/http_transport.c
@@ -320,11 +320,11 @@
320320
** Read N bytes of content directly from the wire and write into
321321
** the buffer.
322322
*/
323323
static int transport_fetch(UrlData *pUrlData, char *zBuf, int N){
324324
int got;
325
- if( sshIn ){
325
+ if( pUrlData->isSsh ){
326326
int x;
327327
int wanted = N;
328328
got = 0;
329329
while( wanted>0 ){
330330
x = read(sshIn, &zBuf[got], wanted);
331331
--- 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

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button