Fossil

Check-in [e97665e0]
Login

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

Overview
Comment:Prefer use of fossil_strcmp that handles NULL better.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | url-password-fixes
Files: files | file ages | folders
SHA1:e97665e0566ef29247756ae3306bc0fe3147a860
User & Date: andybradford 2013-11-09 02:38:37
Context
2013-11-10
06:01
On Win32 isatty/fileno have been deprecated in favor of _isatty/_fileno. check-in: 594bbaea user: andybradford tags: url-password-fixes
2013-11-09
02:38
Prefer use of fossil_strcmp that handles NULL better. check-in: e97665e0 user: andybradford tags: url-password-fixes
2013-11-08
07:50
Remove side effect produced when calling with no flags. This permits removal of work around in sync.c. check-in: 912ca195 user: andybradford tags: url-password-fixes
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/user.c.

134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
/*
** Prompt to save Fossil user password
*/
int save_password_prompt(){
  Blob x;
  char c;
  const char *old = db_get("last-sync-pw", 0);
  if( (old!=0) && !strcmp(unobscure(old), g.urlPasswd) ){
     return 0;
  }
  prompt_user("remember password (Y/n)? ", &x);
  c = blob_str(&x)[0];
  blob_reset(&x);
  return ( c!='n' && c!='N' );
}







|







134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
/*
** Prompt to save Fossil user password
*/
int save_password_prompt(){
  Blob x;
  char c;
  const char *old = db_get("last-sync-pw", 0);
  if( (old!=0) && fossil_strcmp(unobscure(old), g.urlPasswd)==0 ){
     return 0;
  }
  prompt_user("remember password (Y/n)? ", &x);
  c = blob_str(&x)[0];
  blob_reset(&x);
  return ( c!='n' && c!='N' );
}