On Mon, May 02, 2022 at 12:36:09PM +0200, Ulrich Windl wrote: > 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. Fixed by commit: https://github.com/util-linux/util-linux/commit/6ab10df254c62e1abf962a8756c0cd4aa333a47f Thanks for your report. Karel -- Karel Zak <kzak@xxxxxxxxxx> http://karelzak.blogspot.com