Fossil SCM
Do not prompt for passwords on ssh: or file: syncs.
Commit
c06e474f68e9a3055b7adc8ff17e941dba21ec11
Parent
85ca387557c9215…
1 file changed
+1
+1
| --- src/url.c | ||
| +++ src/url.c | ||
| @@ -429,10 +429,11 @@ | ||
| 429 | 429 | /* |
| 430 | 430 | ** Prompt the user for the password for g.urlUser. Store the result |
| 431 | 431 | ** in g.urlPasswd. |
| 432 | 432 | */ |
| 433 | 433 | void url_prompt_for_password(void){ |
| 434 | + if( g.urlIsSsh || g.urlIsFile ) return; | |
| 434 | 435 | if( isatty(fileno(stdin)) |
| 435 | 436 | && (g.urlFlags & URL_PROMPT_PW)!=0 |
| 436 | 437 | && (g.urlFlags & URL_PROMPTED)==0 |
| 437 | 438 | ){ |
| 438 | 439 | char *zPrompt = mprintf("\rpassword for %s: ", g.urlUser); |
| 439 | 440 |
| --- src/url.c | |
| +++ src/url.c | |
| @@ -429,10 +429,11 @@ | |
| 429 | /* |
| 430 | ** Prompt the user for the password for g.urlUser. Store the result |
| 431 | ** in g.urlPasswd. |
| 432 | */ |
| 433 | void url_prompt_for_password(void){ |
| 434 | if( isatty(fileno(stdin)) |
| 435 | && (g.urlFlags & URL_PROMPT_PW)!=0 |
| 436 | && (g.urlFlags & URL_PROMPTED)==0 |
| 437 | ){ |
| 438 | char *zPrompt = mprintf("\rpassword for %s: ", g.urlUser); |
| 439 |
| --- src/url.c | |
| +++ src/url.c | |
| @@ -429,10 +429,11 @@ | |
| 429 | /* |
| 430 | ** Prompt the user for the password for g.urlUser. Store the result |
| 431 | ** in g.urlPasswd. |
| 432 | */ |
| 433 | void url_prompt_for_password(void){ |
| 434 | if( g.urlIsSsh || g.urlIsFile ) return; |
| 435 | if( isatty(fileno(stdin)) |
| 436 | && (g.urlFlags & URL_PROMPT_PW)!=0 |
| 437 | && (g.urlFlags & URL_PROMPTED)==0 |
| 438 | ){ |
| 439 | char *zPrompt = mprintf("\rpassword for %s: ", g.urlUser); |
| 440 |