Fossil SCM

Do not prompt for passwords on ssh: or file: syncs.

drh 2013-03-03 00:26 trunk
Commit c06e474f68e9a3055b7adc8ff17e941dba21ec11
1 file changed +1
+1
--- src/url.c
+++ src/url.c
@@ -429,10 +429,11 @@
429429
/*
430430
** Prompt the user for the password for g.urlUser. Store the result
431431
** in g.urlPasswd.
432432
*/
433433
void url_prompt_for_password(void){
434
+ if( g.urlIsSsh || g.urlIsFile ) return;
434435
if( isatty(fileno(stdin))
435436
&& (g.urlFlags & URL_PROMPT_PW)!=0
436437
&& (g.urlFlags & URL_PROMPTED)==0
437438
){
438439
char *zPrompt = mprintf("\rpassword for %s: ", g.urlUser);
439440
--- 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

Keyboard Shortcuts

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