diff options
author | Lennart Poettering <lennart@poettering.net> | 2021-05-07 17:29:39 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-07 17:29:39 +0200 |
commit | 37ef2fc9f7709c710692081e7e3be94d7b16d9fa (patch) | |
tree | 1702f5f959125f99b9d179cc45bc34594ab6e885 /src/journal | |
parent | Merge pull request #19134 from poettering/outbound-special-hostname (diff) | |
parent | core,journald: use quoted commandlines (diff) | |
download | systemd-37ef2fc9f7709c710692081e7e3be94d7b16d9fa.tar.xz systemd-37ef2fc9f7709c710692081e7e3be94d7b16d9fa.zip |
Merge pull request #18863 from keszybz/cmdline-escaping
Escape command lines properly
Diffstat (limited to 'src/journal')
-rw-r--r-- | src/journal/journald-context.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/journal/journald-context.c b/src/journal/journald-context.c index add0a5480d..694056d558 100644 --- a/src/journal/journald-context.c +++ b/src/journal/journald-context.c @@ -225,7 +225,7 @@ static void client_context_read_basic(ClientContext *c) { if (get_process_exe(c->pid, &t) >= 0) free_and_replace(c->exe, t); - if (get_process_cmdline(c->pid, SIZE_MAX, 0, &t) >= 0) + if (get_process_cmdline(c->pid, SIZE_MAX, PROCESS_CMDLINE_QUOTE, &t) >= 0) free_and_replace(c->cmdline, t); if (get_process_capeff(c->pid, &t) >= 0) |