]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
bus-util: update comment
authorYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 29 Jun 2018 03:35:36 +0000 (12:35 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 29 Jun 2018 03:35:49 +0000 (12:35 +0900)
Originally, request_name_handler_may_reload_dbus() was written for
timesyncd. But now it is also called by networkd or resolved.

src/shared/bus-util.c

index 8b02c6be268b2da9f116022b9e32b95a44827766..c739849bf27bdcd025a6a7d5196ec127c90feaaf 100644 (file)
@@ -1793,11 +1793,10 @@ static int request_name_handler_may_reload_dbus(sd_bus_message *m, void *userdat
                                 "Unable to request name, will retry after reloading DBus configuration: %s",
                                 e->message);
 
-                /* If systemd-timesyncd.service enables DynamicUser= and dbus.service
-                 * started before the dynamic user is realized, then the DBus policy
-                 * about timesyncd has not been enabled yet. So, let's try to reload
-                 * DBus configuration, and after that request the name again. Note that it
-                 * seems that no privileges are necessary to call the following method. */
+                /* If a service enables DynamicUser= and dbus.service started before the dynamic user is realized,
+                 * then the DBus policy about the service has not been enabled yet. So, let's try to reload DBus
+                 * configuration, and after that request the name again. Note that it seems that no privileges are
+                 * necessary to call the following method. */
 
                 r = sd_bus_call_method_async(
                                 sd_bus_message_get_bus(m),