]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/shared/conf-parser.c
conf-parse: add generic config_parse_safe_string() helper
authorLennart Poettering <lennart@poettering.net>
Wed, 9 Feb 2022 08:45:12 +0000 (09:45 +0100)
committerLennart Poettering <lennart@poettering.net>
Wed, 9 Feb 2022 09:16:42 +0000 (10:16 +0100)
commit2d17d699bb10803a46624569322900e9f7086406
treee7a0923be3960de7275d5510437067763c153a79
parent97f27f8a1690cdf32f34edd43121eeda6452676a
conf-parse: add generic config_parse_safe_string() helper

This helper is just like config_parse_string() but does some superficial
checks for control characters and quotes.

In most cases we currently use config_parse_string() we probably want to
use config_parse_safe_string() for safety reasons.
src/shared/conf-parser.c
src/shared/conf-parser.h