debuginfod: Remove debuginfod_init_cache
authorMark Wielaard <mark@klomp.org>
Sun, 8 May 2022 17:27:48 +0000 (19:27 +0200)
committerMark Wielaard <mark@klomp.org>
Sat, 14 May 2022 22:20:59 +0000 (00:20 +0200)
commit6b08114b11985ec3a903456f278aa67329491eae
tree175fbe2553b6788d9d321040225f98362b70c441
parenta6b3e9dd4e725e1500872f3726f97954b81d59ad
debuginfod: Remove debuginfod_init_cache

debuginfod_init_cache would create all config files if they didn't
exist yet. It always made two stat calls. Then debuginfod_clean_cache
would call debuginfod_config_cache which did the same checks and
created any missing config files. Just make sure the cache_path
directory exists and remove debuginfod_init_cache before calling
debuginfod_clean_cache.

Signed-off-by: Mark Wielaard <mark@klomp.org>
debuginfod/ChangeLog
debuginfod/debuginfod-client.c