]> git.ipfire.org Git - thirdparty/systemd.git/commit
udev: replace unsafe characters on assigning ENV{key}="val" when OPTIONS="string_esca...
authorYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 14 Apr 2021 06:13:54 +0000 (15:13 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 23 Jun 2021 07:40:52 +0000 (16:40 +0900)
commitea0f4578a7e90f5227817058bfb11bb91dbb1431
treec13ae456b3df2328555c80bb3b1e606b4137862f
parent51c2f543d1474c2615fb8282ea90b2954db33a7e
udev: replace unsafe characters on assigning ENV{key}="val" when OPTIONS="string_escape=replace" is set

Strictly speaking, this breaks backward compatibility, as previously
`ENV{key}="val"` ignored `string_escape=` option. But, introducing
a new option such as `string_escape=hoge` sounds overkill for me.
The default escape mode is `ESCAPE_UNSET`, so I hope this merely break
existing rules.
src/udev/udev-rules.c