]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/core/load-fragment.c
util-lib,tests: rework unbase64 so that we skip over whitespace automatically (#7522)
authorLennart Poettering <lennart@poettering.net>
Sun, 3 Dec 2017 19:57:24 +0000 (20:57 +0100)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Sun, 3 Dec 2017 19:57:24 +0000 (04:57 +0900)
commit081f36d82de848ab93acbc19cac0d79186e9321c
tree3833a85e824ca53ec7d25ac3ec2ebcee3d5cea28
parent84786b8e322f916b78aeb81f409ea3500dd49143
util-lib,tests: rework unbase64 so that we skip over whitespace automatically (#7522)

Let's optimize things a bit, and instead of having to strip whitespace
first before decoding base64, let's do that implicitly while doing so.
Given that base64 was designed the way it was designed specifically to
be tolerant to whitespace changes, it's a good idea to do this
automatically and implicitly.
src/basic/hexdecoct.c
src/core/load-fragment.c
src/shared/bus-unit-util.c
src/test/test-hexdecoct.c