1
0
mirror of https://github.com/systemd/systemd.git synced 2025-03-31 14:50:15 +03:00

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.
This commit is contained in:
Alison Chaiken 2014-11-30 12:14:48 +01:00 committed by Tom Gundersen
parent 34029ff146
commit d0a2e1c364
Notes: Lennart Poettering 2014-12-09 20:22:31 +01:00
Backport: bugfix

View File

@ -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))