diff options
author | Lennart Poettering <lennart@poettering.net> | 2015-03-23 18:55:36 +0700 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2015-03-26 11:56:22 +0100 |
commit | 4034a06ddb82ec9868cd52496fef2f5faa25575f (patch) | |
tree | a832cd56abb7830985f3e7e9dff7451b96478c24 /src/journal-remote/journal-remote.c | |
parent | be3ce3014eacd66fa292fc9e4e6b3d3b0ef7de23 (diff) |
util: rework word parsing and c unescaping code
When parsing words from input files, optionally automatically unescape
the passed strings, controllable via a new flags parameter.
Make use of this in tmpfiles, and port everything else over, too.
This improves parsing quite a bit, since we no longer have to process the
same string multiple times with different calls, where an earlier call
might corrupt the input for a later call.
Diffstat (limited to 'src/journal-remote/journal-remote.c')
-rw-r--r-- | src/journal-remote/journal-remote.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/journal-remote/journal-remote.c b/src/journal-remote/journal-remote.c index 82291a4f7f..6198a99b75 100644 --- a/src/journal-remote/journal-remote.c +++ b/src/journal-remote/journal-remote.c @@ -143,7 +143,7 @@ static int spawn_getter(const char *getter, const char *url) { _cleanup_strv_free_ char **words = NULL; assert(getter); - r = strv_split_quoted(&words, getter, false); + r = strv_split_quoted(&words, getter, 0); if (r < 0) return log_error_errno(r, "Failed to split getter option: %m"); |