chiark / gitweb /
Let config_parse open file where applicable
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 16 Jul 2014 22:27:12 +0000 (18:27 -0400)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 16 Jul 2014 22:47:20 +0000 (18:47 -0400)
commit36f822c4bd077f9121757e24b6516e5c7ada63b5
tree9201ba3d895aa08a00c17ada422a3dd399e456f9
parente1bbf3d12f28b8e3d4394f2b257e1b7aea3d10fc
Let config_parse open file where applicable

Special care is needed so that we get an error message if the
file failed to parse, but not when it is missing. To avoid duplicating
the same error check in every caller, add an additional 'warn' boolean
to tell config_parse whether a message should be issued.
This makes things both shorter and more robust wrt. to error reporting.
20 files changed:
src/bootchart/bootchart.c
src/core/load-dropin.c
src/core/load-fragment.c
src/core/main.c
src/dbus1-generator/dbus1-generator.c
src/journal-remote/journal-remote.c
src/journal-remote/journal-upload.c
src/journal/coredump.c
src/journal/journald-server.c
src/login/logind.c
src/network/networkd-netdev.c
src/network/networkd-network.c
src/resolve/resolved-manager.c
src/shared/conf-parser.c
src/shared/conf-parser.h
src/shared/install.c
src/shared/sleep-config.c
src/timesync/timesyncd.c
src/tty-ask-password-agent/tty-ask-password-agent.c
src/udev/net/link-config.c