Граф коммитов

2 Коммитов

Автор SHA1 Сообщение Дата
Derrick Stolee bda52f2b40 gvfs: allow overriding core.gvfs
We found a user who had set "core.gvfs = false" in their global
config. This should not have been necessary, but it also should not
have caused a problem. However, it did.

The reason is that gvfs_load_config_value() is called from config.c
when reading config key/value pairs from all the config files. The
local config should override the global config, and this is done by
config.c reading the global config first then reading the local
config. However, our logic only allowed writing the core_gvfs
variable once.

Put the guards against multiple assignments of core_gvfs into
gvfs_config_is_set() instead, because that will fix the problem
_and_ keep multiple calls to gvfs_config_is_set() from slowing down.

Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
2022-07-12 12:26:34 +02:00
Kevin Willford 4286f93258 gvfs: refactor loading the core.gvfs config value
This code change makes sure that the config value for core_gvfs
is always loaded before checking it.

Signed-off-by: Kevin Willford <kewillf@microsoft.com>
2022-07-12 12:26:33 +02:00