src/server/daemon/config.c

changeset 409
62aad4d94d5d
parent 393
79e542cc20a9
child 415
d938228c382e
--- 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