dav/main.c

changeset 732
b0eb645cd26e
parent 731
e0358fa1a3b1
child 733
a7883961b5f4
equal deleted inserted replaced
731:e0358fa1a3b1 732:b0eb645cd26e
2901 while((location = assistant_getoptcfg("Location"))) { 2901 while((location = assistant_getoptcfg("Location"))) {
2902 locations = ucx_list_append(locations, location); 2902 locations = ucx_list_append(locations, location);
2903 } 2903 }
2904 2904
2905 int ret = 1; 2905 int ret = 1;
2906 if(user && password) { 2906 if(user && password) {
2907 pwdstore_put_index(secrets, id, locations); 2907 pwdstore_put_index(secrets, id, locations);
2908 pwdstore_put(secrets, id, user, password); 2908 pwdstore_put(secrets, id, user, password);
2909 ret = pwdstore_save(secrets); 2909 ret = pwdstore_save(secrets);
2910 if(ret) { 2910 if(ret) {
2911 fprintf(stderr, "Error: saving srcrets store failed.\n"); 2911 fprintf(stderr, "Error: saving srcrets store failed.\n");

mercurial