logger: invalid structured data parameter: 'fo\o="b\"a\"r"'

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

 



Hi!

Testing my syslogd that was extended to handle RFC 5424 type messages, I found
out that

--sd-param 'fo\o="bar"'

would work, but

--sd-param 'fo\o="b\"a\"r"'

won't. Reading RFC 5424, I guess that using \" in PARAM-VALUE is OK (passing a
literal "):

On page 16, 6.3.3.:
   Inside PARAM-VALUE, the characters ’"’ (ABNF %d34), ’\’ (ABNF %d92),
   and ’]’ (ABNF %d93) MUST be escaped.  This is necessary to avoid
   parsing errors.

So I guess if " miust be escaped, it's allowed to be escaped (to pass a
literal ").

Found in util-linux-systemd-2.33.2-4.18.1.x86_64 of SLES12 SP5.
Still present in util-linux-systemd-2.36.2-150300.4.20.1.x86_64 of SLES15
SP3.

Regards,
Ulrich Windl





[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux