I got tired of debugedit both dumping nul-delimited data when using "-l /dev/stdout" and it's refusal to even output filenames if it cannot open the source file in read/write mode (e.g. root owned files). This patch adds the following options: -p: Print newline delimited output of files. -r: Open read-only. Which basically allows one to always dump a list of source files to stdout without editing the original source file at all. This is useful because it allows one to use said files for other purposes like dependencies or in my case, using a debug script which copies the source files of code in progress to a staging directory so that in the case of coredumps, they are still valid for said revision of code (allowing ongoing development of the main tree at the same time). Reproducible: Always
Created attachment 151664 [details, diff] patch
Created attachment 151667 [details, diff] updated patch Updated patch to allow multiple filenames on the command line rather than debugedit just erroring out.
Created attachment 151669 [details, diff] small fix to the previous Previous patches still output a null before the newline, this fixes that.
Is that patch in upstream rpm?
Not that I know of. It's self-written. As far as I know, there is no longer a maintainer of debugedit.
Upstream is part of RPM, so the maintainer is whoever maintains RPM
Christopher, could you please take a look at https://bugs.gentoo.org/show_bug.cgi?id=288977. I tested your patch with debugedit-4.4.6-r1 on ~x86, and it works as expected. However, there seem to be an undocumented command line switch "-i".
If this is still missing and deemed useful, please submit the patch to upstream RPM maintainers.