abort config loading if an unknown webdav backend is specified

Wed, 02 Nov 2022 17:53:15 +0100

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Wed, 02 Nov 2022 17:53:15 +0100
changeset 409
62aad4d94d5d
parent 408
56edda8701e0
child 410
8f4d28ac6ae2

abort config loading if an unknown webdav backend is specified

src/server/daemon/config.c file | annotate | diff | comparison | revisions
--- a/src/server/daemon/config.c	Wed Nov 02 17:47:39 2022 +0100
+++ b/src/server/daemon/config.c	Wed Nov 02 17:53:15 2022 +0100
@@ -804,7 +804,9 @@
         if(vfs) {
             repository->vfs = vfs;
             repository->vfsInitData = vfs_init_backend(cfg, cfg->pool, vfs, obj, &init_error);
-            ret = init_error;
+            if(!ret) {
+                ret = init_error;
+            }
         } else {
             log_ereport(LOG_FAILURE, "Unknown vfs type '%s'", vfs_class.ptr);
             ret = 1;

mercurial