From 48e5ef14af5ade97b0f7491c63443778c7602c43 Mon Sep 17 00:00:00 2001 From: Luca Boccassi Date: Tue, 6 Jul 2021 12:55:30 +0100 Subject: [PATCH] man: correct return value of sd_bus_open_with_description Since https://github.com/systemd/systemd/commit/f4b2933ee7890e5d414ab266d8586f19027a2bd9 if a description is not set, sd_bus_open_with_description returns -ENXIO, but the documnetation stated that it returned successfully with a NULL string. --- man/sd_bus_set_description.xml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/man/sd_bus_set_description.xml b/man/sd_bus_set_description.xml index bbd3835f01d..ce6b8d387d8 100644 --- a/man/sd_bus_set_description.xml +++ b/man/sd_bus_set_description.xml @@ -115,7 +115,7 @@ sd_bus_open_with_description3 or similar. If not set this way, a default string like system or user will be returned for the system or user buses, and - NULL otherwise. + -ENXIO otherwise. sd_bus_set_anonymous() enables or disables "anonymous authentication", i.e. lack of authentication, of the bus peer. This function must be called before the bus is @@ -222,7 +222,10 @@ -ENXIO The bus object passed to sd_bus_get_tid() was not a - default bus object and is not attached to an event loop. + default bus object and is not attached to an event loop. + + The bus object passed to sd_bus_get_description() did + not have a description.