510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
|
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
|
-
+
-
+
-
+
|
transport_close(&g.url);
if( g.fSshTrace ){
printf("Retry after %s the PATH= argument to the SSH command\n",
(g.url.flags & URL_SSH_PATH)!=0 ? "removing" : "adding");
}
g.url.flags ^= URL_SSH_PATH|URL_SSH_RETRY;
rc = http_exchange(pSend,pReply,mHttpFlags,0,zAltMimetype);
if( rc==0 && (g.url.flags & URL_REMEMBER)!=0 ){
if( rc==0 ){
char *z = mprintf("use-path-for-ssh:%s", g.url.hostname);
if( (g.url.flags & URL_SSH_PATH) ){
db_set(z/*works-like:"x"*/, "1", 1);
db_set(z/*works-like:"x"*/, "1", 0);
}else{
db_unset(z/*works-like:"x"*/, 1);
db_unset(z/*works-like:"x"*/, 0);
}
fossil_free(z);
}
return rc;
}else{
/* The problem could not be corrected by retrying. Report the
** the error. */
|