From bc9870a9237bca946ec79fd2531c664db3e344fa Mon Sep 17 00:00:00 2001 From: Eric Boucher Date: Sun, 26 Apr 2026 21:04:07 -0400 Subject: [PATCH] sd-json: encode pidref fd_id as unsigned PidRef.fd_id is uint64_t. --- src/libsystemd/sd-json/json-util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libsystemd/sd-json/json-util.c b/src/libsystemd/sd-json/json-util.c index 6cbb61cb5e..76d882e3fb 100644 --- a/src/libsystemd/sd-json/json-util.c +++ b/src/libsystemd/sd-json/json-util.c @@ -499,7 +499,7 @@ int json_variant_new_pidref(sd_json_variant **ret, PidRef *pidref) { return sd_json_buildo( ret, SD_JSON_BUILD_PAIR_INTEGER("pid", pidref->pid), - SD_JSON_BUILD_PAIR_CONDITION(pidref->fd_id > 0, "pidfdId", SD_JSON_BUILD_INTEGER(pidref->fd_id)), + SD_JSON_BUILD_PAIR_CONDITION(pidref->fd_id > 0, "pidfdId", SD_JSON_BUILD_UNSIGNED(pidref->fd_id)), SD_JSON_BUILD_PAIR_CONDITION(!sd_id128_is_null(boot_id), "bootId", SD_JSON_BUILD_ID128(boot_id))); }