dav/main.c

changeset 150
37fb12574acd
parent 147
458a8dc68048
child 151
a316613205dc
equal deleted inserted replaced
149:509e9e1cbdcc 150:37fb12574acd
185 char *user = NULL; 185 char *user = NULL;
186 char ubuf[256]; 186 char ubuf[256];
187 if(repo->user) { 187 if(repo->user) {
188 user = repo->user; 188 user = repo->user;
189 } else { 189 } else {
190 fprintf(stderr, "user: "); 190 fprintf(stderr, "User: ");
191 fflush(stderr); 191 fflush(stderr);
192 user = fgets(ubuf, 256, stdin); 192 user = fgets(ubuf, 256, stdin);
193 } 193 }
194 194
195 char *password = util_password_input("password: "); 195 char *password = util_password_input("Password: ");
196 196
197 size_t ulen = strlen(user); 197 size_t ulen = strlen(user);
198 if(user[ulen-1] == '\n') { 198 if(user[ulen-1] == '\n') {
199 user[ulen-1] = '\0'; 199 user[ulen-1] = '\0';
200 } 200 }
612 sn, 612 sn,
613 "select - from %s with depth = %d where lastmodified > %t", 613 "select - from %s with depth = %d where lastmodified > %t",
614 path, 614 path,
615 depth, 615 depth,
616 t); 616 t);
617 617
618 if(!res) { 618 if(!res) {
619 print_resource_error(sn, path); 619 print_resource_error(sn, path);
620 return -1; 620 return -1;
621 } 621 }
622 if(!recursive && res->iscollection) { 622 if(!recursive && res->iscollection) {

mercurial