summaryrefslogtreecommitdiffstats
path: root/src/nss-resolve
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/nss-resolve
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/nss-resolve')
-rw-r--r--src/nss-resolve/nss-resolve.c2
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();