diff options
author | Lennart Poettering <lennart@poettering.net> | 2024-01-05 12:39:28 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2024-01-05 12:43:06 +0100 |
commit | f0e4244b2fda1b3de3da1c2792ed1cd21c72087b (patch) | |
tree | 648cf848ac06afc46f809f33d929954136c9001d /src/nss-resolve | |
parent | json: add new dispatch flag JSON_ALLOW_EXTENSIONS (diff) | |
download | systemd-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/nss-resolve')
-rw-r--r-- | src/nss-resolve/nss-resolve.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nss-resolve/nss-resolve.c b/src/nss-resolve/nss-resolve.c index c4e02bc7c1..822ad4f622 100644 --- a/src/nss-resolve/nss-resolve.c +++ b/src/nss-resolve/nss-resolve.c @@ -20,7 +20,7 @@ #include "strv.h" #include "varlink.h" -static JsonDispatchFlags json_dispatch_flags = 0; +static JsonDispatchFlags json_dispatch_flags = JSON_ALLOW_EXTENSIONS; static void setup_logging(void) { log_parse_environment_variables(); |