]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
shared: do not include ~ when appending syscall filters property
authorRonny Chevalier <ronny.chevalier@hp.com>
Mon, 18 Jun 2018 09:16:12 +0000 (11:16 +0200)
committerLennart Poettering <lennart@poettering.net>
Mon, 18 Jun 2018 11:12:20 +0000 (13:12 +0200)
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

index 5cff6c03c251d8c7b0f845cbb12ffba7adac6752..3238b442c053507965c899d04027ceabaf8df0e2 100644 (file)
@@ -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);