summaryrefslogtreecommitdiffstats
path: root/src/shared/group-record.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2024-01-05 12:39:28 +0100
committerLennart Poettering <lennart@poettering.net>2024-01-05 12:43:06 +0100
commitf0e4244b2fda1b3de3da1c2792ed1cd21c72087b (patch)
tree648cf848ac06afc46f809f33d929954136c9001d /src/shared/group-record.c
parentjson: add new dispatch flag JSON_ALLOW_EXTENSIONS (diff)
downloadsystemd-f0e4244b2fda1b3de3da1c2792ed1cd21c72087b.tar.xz
systemd-f0e4244b2fda1b3de3da1c2792ed1cd21c72087b.zip
tree-wide: use JSON_ALLOW_EXTENSIONS when disptching at various places
If we want to allow method replies to be extended without this breaking compat, then we should set this flag. Do so at various method call replies hence. Also do it when parsing user/group records, which are expressly documented to be extensible, as well as the hibernate JSON record.
Diffstat (limited to 'src/shared/group-record.c')
-rw-r--r--src/shared/group-record.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/group-record.c b/src/shared/group-record.c
index 1e33bdfed5..4fed5c671c 100644
--- a/src/shared/group-record.c
+++ b/src/shared/group-record.c
@@ -230,7 +230,7 @@ int group_record_load(
if (r < 0)
return r;
- r = json_dispatch(h->json, group_dispatch_table, json_flags, h);
+ r = json_dispatch(h->json, group_dispatch_table, json_flags | JSON_ALLOW_EXTENSIONS, h);
if (r < 0)
return r;