From 98008caa94a7aca76297ecdca86a23f460386429 Mon Sep 17 00:00:00 2001 From: Ronny Chevalier Date: Mon, 18 Jun 2018 11:16:12 +0200 Subject: [PATCH] shared: do not include ~ when appending syscall filters property The method already uses a boolean argument to determine whether it is in whitelist mode or not. The code that will parse the string of filters does not expect the ~, since it already has the boolean argument. Thus, it will fail to parse the list of filters. --- src/shared/bus-unit-util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shared/bus-unit-util.c b/src/shared/bus-unit-util.c index 5cff6c03c25..3238b442c05 100644 --- a/src/shared/bus-unit-util.c +++ b/src/shared/bus-unit-util.c @@ -966,7 +966,7 @@ static int bus_append_execute_property(sd_bus_message *m, const char *field, con if (r < 0) return bus_log_create_error(r); - for (p = eq;;) { + for (;;) { _cleanup_free_ char *word = NULL; r = extract_first_word(&p, &word, NULL, EXTRACT_QUOTES); -- 2.47.3