Check-in [328fc92ceb]
Not logged in

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Wait to record the sync password until after the user has actually entered the sync password. Ticket [8b46db87f1bfa942b]
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 328fc92ceb318278b74382888c58cdf202d89933
User & Date: drh 2010-11-12 22:12:51.000
References
2010-11-17
01:39 Closed ticket [8b46db87f1]: fossil update reporting 'login failed' despite local repo having a password for the account used plus 1 other change artifact: 6eb76d542f user: aku
2010-11-12
23:03 Open ticket [8b46db87f1]. artifact: a9a8646618 user: aku
Context
2010-11-12
23:27
More typos in the fossil-v-git document. check-in: a17ed85c08 user: drh tags: trunk
22:12
Wait to record the sync password until after the user has actually entered the sync password. Ticket [8b46db87f1bfa942b] check-in: 328fc92ceb user: drh tags: trunk
21:51
Add the fossil_nameofexe() function to use in place of g.argv[0]. check-in: a04a650870 user: drh tags: trunk
Changes
Unified Diff Ignore Whitespace Patch
Changes to src/sync.c.
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118




119
120
121
122
123
124
125
    zUrl = g.argv[2];
  }
  if( zUrl==0 ){
    if( urlOptional ) fossil_exit(0);
    usage("URL");
  }
  url_parse(zUrl);
  if( !g.dontKeepUrl ){
    db_set("last-sync-url", g.urlCanonical, 0);
    if( g.urlPasswd ) db_set("last-sync-pw", obscure(g.urlPasswd), 0);
  }
  if( g.urlUser!=0 && g.urlPasswd==0 ){
    if( zPw==0 ){
      url_prompt_for_password();
    }else{
      g.urlPasswd = mprintf("%s", zPw);
    }
  }




  user_select();
  if( g.argc==2 ){
    printf("Server:    %s\n", g.urlCanonical);
  }
  url_enable_proxy("via proxy: ");
  return configSync;
}







<
<
<
<







>
>
>
>







101
102
103
104
105
106
107




108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
    zUrl = g.argv[2];
  }
  if( zUrl==0 ){
    if( urlOptional ) fossil_exit(0);
    usage("URL");
  }
  url_parse(zUrl);




  if( g.urlUser!=0 && g.urlPasswd==0 ){
    if( zPw==0 ){
      url_prompt_for_password();
    }else{
      g.urlPasswd = mprintf("%s", zPw);
    }
  }
  if( !g.dontKeepUrl ){
    db_set("last-sync-url", g.urlCanonical, 0);
    if( g.urlPasswd ) db_set("last-sync-pw", obscure(g.urlPasswd), 0);
  }
  user_select();
  if( g.argc==2 ){
    printf("Server:    %s\n", g.urlCanonical);
  }
  url_enable_proxy("via proxy: ");
  return configSync;
}