Re: Q: journal logging and "{xyz}"

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Dec 27, 2021 at 10:53 AM Ulrich Windl <Ulrich.Windl@xxxxxxxxxxxxxxxxxxxx> wrote:
Hi!

I just noticed that systemctl kill logs a (mis-named) service "{__SERVICE__}" as "\x7b__SERVICE__\x7d.service".
Is that intended? Are braces considered bad?

As per systemd.unit(5),

Valid unit names consist of a "name prefix" and a dot and a suffix specifying the unit type. The "unit prefix" must consist of one or more valid characters (ASCII letters, digits, ":", "-", "_", ".", and "\").

Anything else goes through C-style escaping (see systemd-escape) before it even leaves systemctl.

--
Mantas Mikulėnas

[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux