summaryrefslogtreecommitdiff
path: root/src/delta
diff options
context:
space:
mode:
authorAlison Chaiken <alison_chaiken@mentor.com>2014-11-30 12:14:48 +0100
committerTom Gundersen <teg@jklm.no>2014-11-30 12:24:49 +0100
commitd0a2e1c364320b862a6aae099afa106ea59bb84c (patch)
tree613c3b287fa5b6ef7b7a61ddb12bb2fcec39315c /src/delta
parent34029ff146faf301cf016b1e34594bb3845bc8f2 (diff)
delta: Fix broken separator support
systemd-delta man page promises that multiple types of deltas will be concatenated if they are listed with a comma as separator. Replace FOREACH_WORD() with FOREACH_WORD_SEPARATOR() to restore the functionality.
Diffstat (limited to 'src/delta')
-rw-r--r--src/delta/delta.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/delta/delta.c b/src/delta/delta.c
index 99305716ed..a3a121fb0c 100644
--- a/src/delta/delta.c
+++ b/src/delta/delta.c
@@ -484,7 +484,7 @@ static int parse_flags(const char *flag_str, int flags) {
const char *word, *state;
size_t l;
- FOREACH_WORD(word, l, flag_str, state) {
+ FOREACH_WORD_SEPARATOR(word, l, flag_str, ",", state) {
if (strneq("masked", word, l))
flags |= SHOW_MASKED;
else if (strneq ("equivalent", word, l))