[systemd-devel] [PATCH 2/2] coredump: Handle programs with spaces in COMM

Colin Walters walters at verbum.org
Tue Apr 30 10:12:19 PDT 2013


This patch makes systemd-coredump handle processes that have
whitespace in their COMM fields.

fs/coredump.c when given %e (as systemd-coredump uses), will end up
joining the process arguments into a string (along with the other
fields), then will split the entire thing up on whitespace, and use
it as the arguments to the coredump pipe handler.

Previously, systemd-coredump would then reject them as having too many
arguments.
---
 src/journal/coredump.c |   25 ++++++++++++++++++-------
 1 files changed, 18 insertions(+), 7 deletions(-)



-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-coredump-Handle-programs-with-spaces-in-COMM.patch
Type: text/x-patch
Size: 3657 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/systemd-devel/attachments/20130430/590ce08f/attachment.bin>


More information about the systemd-devel mailing list