From 08ef688656fc0f387e9cff503fd0e6365c8e4b84 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Tue, 14 Jul 2020 12:21:47 +0200 Subject: [PATCH] analyze: make testing ConditionPathExistsGlob= work Fixes: #16439 Alternative-To: #16440 --- src/analyze/analyze-condition.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/analyze/analyze-condition.c b/src/analyze/analyze-condition.c index d18ee9d043a..52ad382637f 100644 --- a/src/analyze/analyze-condition.c +++ b/src/analyze/analyze-condition.c @@ -85,11 +85,14 @@ static int parse_condition(Unit *u, const char *line) { p = startswith(line, c->name); if (!p) continue; + p += strspn(p, WHITESPACE); + if (*p != '=') - return log_error_errno(SYNTHETIC_ERRNO(EINVAL), "Expected \"=\" in \"%s\".", line); + continue; + p++; - p += 1 + strspn(p + 1, WHITESPACE); + p += strspn(p, WHITESPACE); return c->parser(NULL, "(stdin)", 0, NULL, 0, c->name, c->type, p, target, u); } -- 2.39.2