]> git.ipfire.org Git - thirdparty/elfutils.git/commit
debuginfod: DEBUGINFOD_URLS should accept scheme-free urls
authorAlice Zhang <alizhang@redhat.com>
Fri, 3 Jul 2020 17:37:34 +0000 (13:37 -0400)
committerMark Wielaard <mark@klomp.org>
Sun, 5 Jul 2020 15:00:33 +0000 (17:00 +0200)
commit8de6f9af46f12fe3b2a0871523f6df13c4b39e34
tree0fcf485fd19c7b681193600396611e3917cb9a64
parentf7f0cdc59a13780938ae3f578955737a75e60ea9
debuginfod: DEBUGINFOD_URLS should accept scheme-free urls

Check scheme instead of effective url so that user may abbreviate
DEBUGINFOD_URL. Add one test for scheme free http url.

Notice that libcurl does not provide an almighty scheme free url
support, /path/to/something without FILE:// can not be recognized
in most circumstances, therefore for the neatness of our code
structure, DEBUGINFOD_ URL of scheme "FILE" must be input as URI.

Signed-off-by: Alice Zhang <alizhang@redhat.com>
debuginfod/ChangeLog
debuginfod/debuginfod-client.c
tests/ChangeLog
tests/run-debuginfod-find.sh