[PATCH 2/2] debuginfod-find.c: Avoid leaving temp files in the cache

2025-08-10 Thread Aaron Merey
Add a SIGINT handler to debuginfod-find so that ctrl-c during a download causes clean up to occur instead of immediately killing the process and possibly leaving temp files in the client cache. This change requires setting the client progressfn unconditionally instead of only when --verbose is giv

[PATCH 1/2] debuginfod-client.c: Skip negative cache entry for cancelled downloads

2025-08-10 Thread Aaron Merey
The debuginfod client cache uses empty files to indicate that a download was unsuccessful and should not be attempted again. Commit 5527216460c61 skips the creation of empty files when a downloaded is cancelled by the user. This works by setting client->progressfn_cancel to true when progressfn r

[PATCH v2] elf_getarhdr: Replace per-archive Elf_Arhdr storage with per-member storage

2025-08-10 Thread Aaron Merey
Currently each archive descriptor maintains a single Elf_Arhdr for the current archive member (as determined by elf_next or elf_rand) which is returned by elf_getarhdr. A single per-archive Elf_Arhdr is not ideal since elf_next and elf_rand can invalidate an archive member's reference to its own E