debuginfod-client: Update cache_path when the new default path exists
authorAaron Merey <amerey@redhat.com>
Tue, 3 Mar 2020 19:11:48 +0000 (14:11 -0500)
committerMark Wielaard <mark@klomp.org>
Wed, 4 Mar 2020 10:38:05 +0000 (11:38 +0100)
commita5cf9ba6bbdd1d565cfed671eea401ce8e6260b7
treef47d9811a29067149b2976229ff663e997a229ab
parent398991cd3fc59b32c70790d5f26b125b87453db1
debuginfod-client: Update cache_path when the new default path exists

Update cache_path with the path of the new default directory when this
directory already exists. Previously cache_path was updated only when
creating the new default directory and would otherwise be set to the
old default path.

Signed-off-by: Aaron Merey <amerey@redhat.com>
debuginfod/ChangeLog
debuginfod/debuginfod-client.c
tests/run-debuginfod-find.sh