disable error in case of unknown config elements

Sun, 08 Aug 2021 11:38:55 +0200

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Sun, 08 Aug 2021 11:38:55 +0200
changeset 729
5433f0f3dd48
parent 728
35a421f441d5
child 730
83f832e345e0

disable error in case of unknown config elements

dav/config.c file | annotate | diff | comparison | revisions
--- a/dav/config.c	Fri Jun 04 18:24:55 2021 +0200
+++ b/dav/config.c	Sun Aug 08 11:38:55 2021 +0200
@@ -65,6 +65,8 @@
 
 static PwdStore *pstore;
 
+
+
 int check_config_dir(void) {
     char *file = util_concat_path(ENV_HOME, ".dav");
     int ret = 0;
@@ -144,10 +146,10 @@
                 ret = load_proxy(ctx->https_proxy, node, HTTPS_PROXY);
             } else if (xstreq(node->name, "namespace")) {
                 ret = load_namespace(node);
-            } else {
+            } /* else {
                 fprintf(stderr, "Unknown config element: %s\n", node->name);
                 ret = 1;
-            }
+            } */
         }
         node = node->next;
     }

mercurial