From: Ronny Chevalier Date: Mon, 18 Jun 2018 09:16:12 +0000 (+0200) Subject: shared: do not include ~ when appending syscall filters property X-Git-Tag: v239~44 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=98008caa94a7aca76297ecdca86a23f460386429;p=thirdparty%2Fsystemd.git 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. --- 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);