From 5348d111c42e78a80097d88d38005c0d22616c4f Mon Sep 17 00:00:00 2001 From: Justin Stephenson Date: Wed, 4 Sep 2019 14:22:58 -0400 Subject: [PATCH] Fix journal matching This allows for retrieving all tlog recordings and fixes the broken username/hostname filtering. --- src/recordings.jsx | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/recordings.jsx b/src/recordings.jsx index 488a1c1..1a8ca33 100644 --- a/src/recordings.jsx +++ b/src/recordings.jsx @@ -722,10 +722,11 @@ class View extends React.Component { * Assumes journalctl is not running. */ journalctlStart() { - let matches = ["_EXE=/usr/bin/tlog-rec-session", - "_EXE=/usr/bin/tlog-rec", "+", - "_COMM=tlog-rec", "+", - "_COMM=tlog-rec-session"]; + let matches = ["_COMM=tlog-rec", + /* Strings longer than TASK_COMM_LEN (16) characters + * are truncated (man proc) */ + "_COMM=tlog-rec-sessio"]; + if (this.state.username && this.state.username !== "") { matches.push("TLOG_USER=" + this.state.username); }