dav/config.c

changeset 729
5433f0f3dd48
parent 606
aa49966e4e85
child 730
83f832e345e0
equal deleted inserted replaced
728:35a421f441d5 729:5433f0f3dd48
63 static UcxMap *repos; 63 static UcxMap *repos;
64 static UcxMap *keys; 64 static UcxMap *keys;
65 65
66 static PwdStore *pstore; 66 static PwdStore *pstore;
67 67
68
69
68 int check_config_dir(void) { 70 int check_config_dir(void) {
69 char *file = util_concat_path(ENV_HOME, ".dav"); 71 char *file = util_concat_path(ENV_HOME, ".dav");
70 int ret = 0; 72 int ret = 0;
71 if(util_mkdir(file, S_IRWXU)) { 73 if(util_mkdir(file, S_IRWXU)) {
72 if(errno != EEXIST) { 74 if(errno != EEXIST) {
142 ret = load_proxy(ctx->http_proxy, node, HTTP_PROXY); 144 ret = load_proxy(ctx->http_proxy, node, HTTP_PROXY);
143 } else if (xstreq(node->name, "https-proxy")) { 145 } else if (xstreq(node->name, "https-proxy")) {
144 ret = load_proxy(ctx->https_proxy, node, HTTPS_PROXY); 146 ret = load_proxy(ctx->https_proxy, node, HTTPS_PROXY);
145 } else if (xstreq(node->name, "namespace")) { 147 } else if (xstreq(node->name, "namespace")) {
146 ret = load_namespace(node); 148 ret = load_namespace(node);
147 } else { 149 } /* else {
148 fprintf(stderr, "Unknown config element: %s\n", node->name); 150 fprintf(stderr, "Unknown config element: %s\n", node->name);
149 ret = 1; 151 ret = 1;
150 } 152 } */
151 } 153 }
152 node = node->next; 154 node = node->next;
153 } 155 }
154 156
155 xmlFreeDoc(doc); 157 xmlFreeDoc(doc);

mercurial