PR25548: support canonicalized source-path names in debuginfod webapi
authorFrank Ch. Eigler <fche@redhat.com>
Mon, 23 Mar 2020 19:33:56 +0000 (15:33 -0400)
committerFrank Ch. Eigler <fche@redhat.com>
Thu, 26 Mar 2020 14:35:38 +0000 (10:35 -0400)
commitd63a809da467e646480c273b8eb276401679d2bb
treebc880511d67177f17cc179750c7968e089bce8be
parent439641e52a3258ddfa66661f5de8bbcdb1530fc1
PR25548: support canonicalized source-path names in debuginfod webapi

Programs are sometimes compiled with source path names containing
noise like /./ or // or /foo/../, and these survive into DWARF.  This
code allows either raw or canonicalized pathnames in the webapi, by
letting the client pass things verbatim, and letting the server
store/accept both raw and canonicalized path names for source files.
Tests included & docs updated.

Signed-off-by: Frank Ch. Eigler <fche@redhat.com>
Reported-by: Eli Schwartz <eschwartz@archlinux.org>
Tested-by: Eli Schwartz <eschwartz@archlinux.org>
16 files changed:
debuginfod/ChangeLog
debuginfod/debuginfod-client.c
debuginfod/debuginfod.cxx
doc/ChangeLog
doc/debuginfod-find.1
doc/debuginfod.8
doc/debuginfod_find_debuginfo.3
tests/ChangeLog
tests/debuginfod-rpms/fedora31/hello3-1.0-2.src.rpm [new file with mode: 0644]
tests/debuginfod-rpms/fedora31/hello3-1.0-2.x86_64.rpm [new file with mode: 0644]
tests/debuginfod-rpms/fedora31/hello3-debuginfo-1.0-2.x86_64.rpm [new file with mode: 0644]
tests/debuginfod-rpms/fedora31/hello3-debugsource-1.0-2.x86_64.rpm [new file with mode: 0644]
tests/debuginfod-rpms/fedora31/hello3-two-1.0-2.x86_64.rpm [new file with mode: 0644]
tests/debuginfod-rpms/fedora31/hello3-two-debuginfo-1.0-2.x86_64.rpm [new file with mode: 0644]
tests/debuginfod-rpms/hello3.spec. [new file with mode: 0644]
tests/run-debuginfod-find.sh