]> git.ipfire.org Git - thirdparty/systemd.git/commit
util-lib: rework extract_first_word_and_warn() a bit
authorLennart Poettering <lennart@poettering.net>
Fri, 23 Oct 2015 16:20:54 +0000 (18:20 +0200)
committerLennart Poettering <lennart@poettering.net>
Sat, 24 Oct 2015 21:03:49 +0000 (23:03 +0200)
commitdea7b6b043f0cd9e34ee719b9b612c3a4776387e
tree1e46775676ee8ac282bd912d52f0f6e55892227d
parent84ac7bea360cd369df26910e9685a7eed2327088
util-lib: rework extract_first_word_and_warn() a bit

- Really warn in all error cases, not just some. We need to make sure
  that all errors are logged to not confuse the user.

- Explicitly check for EINVAL error code before claiming anything about
  invalid escapes, could be ENOMEM after all.
src/basic/extract-word.c
src/core/load-fragment.c