]> git.ipfire.org Git - thirdparty/systemd.git/commit
journalctl: tighten rules on parsing namespace journal dir suffixes 32236/head
authorLennart Poettering <lennart@poettering.net>
Thu, 11 Apr 2024 17:07:21 +0000 (19:07 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 16 Apr 2024 10:08:23 +0000 (12:08 +0200)
commit2807a8f93ca0701a19e8dc3bc5e09a2ab50dff5c
tree03b56daad4fe1d4de56979f7fe764f08aeb42585
parente1005cae75e146264411865d43ef4bbbc5015280
journalctl: tighten rules on parsing namespace journal dir suffixes

The dot must follow the machine ID immediately, let's check for that.
Also, I think it's generally better to parse the machine ID and then
comparing it, instead of comparing the string representation. That's
more in line how we usually do it, as we parse 128bit IDs generally
case-insensitively.
src/journal/journalctl-misc.c