From f73141d7657b3f60b8669bc8386413d8a8a372c6 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Wed, 3 Apr 2013 19:04:03 +0200 Subject: shared: rework env file reader Implement this with a proper state machine, so that newlines and escaped chars can appear in string assignments. This should bring the parser much closer to shell. --- src/locale/localed.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/locale') diff --git a/src/locale/localed.c b/src/locale/localed.c index 60083b7681..df812ee651 100644 --- a/src/locale/localed.c +++ b/src/locale/localed.c @@ -355,7 +355,7 @@ static int write_data_locale(void) { int r, p; char **l = NULL; - r = load_env_file("/etc/locale.conf", &l); + r = load_env_file("/etc/locale.conf", NULL, &l); if (r < 0 && r != -ENOENT) return r; @@ -494,7 +494,7 @@ static int write_data_vconsole(void) { int r; char **l = NULL; - r = load_env_file("/etc/vconsole.conf", &l); + r = load_env_file("/etc/vconsole.conf", NULL, &l); if (r < 0 && r != -ENOENT) return r; -- cgit v1.2.3-54-g00ecf