Wed, 02 Nov 2022 17:53:15 +0100
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;