]> git.ipfire.org Git - thirdparty/elfutils.git/commit
PR31248: debuginfod_find_*: lseek to the front on returned fds
authorFrank Ch. Eigler <fche@redhat.com>
Tue, 16 Jan 2024 02:21:24 +0000 (21:21 -0500)
committerFrank Ch. Eigler <fche@redhat.com>
Tue, 16 Jan 2024 21:44:57 +0000 (16:44 -0500)
commit7554d41cd3784a321751c9ac430ad123f6c8cc1e
treeb9ec83a77fe5d4981ec9e71cceeea86786fc18ad
parentc1058da5a450e33e72b72abb53bc3ffd7f6b361b
PR31248: debuginfod_find_*: lseek to the front on returned fds

Previous code could return a fd that had its file-offset left at the
place where libcurl last used it, namely at the end of the freshly
downloaded file.  Not good if a client just wants to read it right
away!  We now ensure (and document) that the fd is pointed to the
beginning of the file.

Signed-off-by: Frank Ch. Eigler <fche@redhat.com>
debuginfod/debuginfod-client.c
doc/debuginfod_find_debuginfo.3