405 } |
405 } |
406 |
406 |
407 static DavSession* connect_to_repo(Repository *repo, CmdArgs *a) { |
407 static DavSession* connect_to_repo(Repository *repo, CmdArgs *a) { |
408 char *user = repo->user; |
408 char *user = repo->user; |
409 char *password = repo->password; |
409 char *password = repo->password; |
410 if(repo->stored_user) { |
410 if(repo->stored_user && !cmd_getoption(a, "noinput")) { |
411 PwdStore *pstore = get_pwdstore(); |
411 PwdStore *pstore = get_pwdstore(); |
412 if(pstore) { |
412 if(pstore) { |
413 char *ps_password = util_password_input("Unlock password store: "); |
413 char *ps_password = util_password_input("Unlock password store: "); |
414 if(ps_password) { |
414 if(ps_password) { |
415 if(!pwdstore_setpassword(pstore, ps_password)) { |
415 if(!pwdstore_setpassword(pstore, ps_password)) { |