]> git.ipfire.org Git - thirdparty/systemd.git/commit
basic/extract-word: allow escape character to be escaped
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 10 Mar 2021 14:17:56 +0000 (15:17 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 11 Mar 2021 08:21:07 +0000 (09:21 +0100)
commit76c4e48ee603593822b3076c4cf5b63768ec55e3
tree454c788426be57dc756a90da3a0475ae97d7f5d5
parent8723c716c795b4083372b11dd7065bca2aadbc70
basic/extract-word: allow escape character to be escaped

With EXTRACT_UNESCAPE_SEPARATORS, backslash is used to escape the separator.
But it wasn't possible to insert the backslash itself. Let's allow this and
add test.
src/basic/extract-word.c
src/test/test-extract-word.c