diff options
author | Philip Withnall <withnall@endlessm.com> | 2018-08-01 15:14:19 +0100 |
---|---|---|
committer | Philip Withnall <withnall@endlessm.com> | 2018-08-16 18:58:27 +0100 |
commit | 5ee749cd25f221c382fa4b9545cff62eefcb10cf (patch) | |
tree | d56e111398b8d9832f479b5614c5a41e0d529274 /service/dconf-writer.h | |
parent | e960b50696b95f4b035787e9cbceaa549c172c91 (diff) | |
download | dconf-5ee749cd25f221c382fa4b9545cff62eefcb10cf.tar.gz |
service: Allow opening corrupt GVDB files when writing
If a GVDB file cannot be opened due to being corrupt, move it out of the
way, warn, and open a new blank database instead.
This prevents the situation where a corrupt database stops the entire
desktop session from loading.
Note that the dconf_gvdb_utils_read_file() code path is only taken
inside DConfWriter. The DConf engine sources (such as
dconf-engine-source-system.c) open the GVDB tables separately, and
already all handle errors gracefully.
Signed-off-by: Philip Withnall <withnall@endlessm.com>
https://gitlab.gnome.org/GNOME/glib/issues/1454
Diffstat (limited to 'service/dconf-writer.h')
0 files changed, 0 insertions, 0 deletions