json: merge json_dispatch_path() + json_dispatch_absolute_path()
authorLennart Poettering <lennart@poettering.net>
Wed, 22 May 2024 20:13:57 +0000 (22:13 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 12 Jun 2024 16:39:03 +0000 (18:39 +0200)
commitf2eb7716d0bac2a95115492f34a7763d63e80c35
treef067e3651d50d4d17b95167292fa6961f801d58b
parentb90eda90ae3918dcf954b5a9500beb0fb6cef960
json: merge json_dispatch_path() + json_dispatch_absolute_path()

The functions more or less do the same thing. Merge them.

This makes json_dispatch_path() the common resulting implementation. it
learnt:

1. Will reset the path to NULL if specified as null in JSON
2. Depending on the JSON_SAFE flag will insist on normalized path or not

With this the two implementations are identical, except for the
differences now toggable via JSON_SAFE flag
src/machine/machine-varlink.c
src/shared/json.c
src/shared/json.h
src/shared/user-record.c