[systemd-commits] src/hostnamed.c

Lennart Poettering lennart at kemper.freedesktop.org
Mon Sep 19 13:41:40 PDT 2011


 src/hostnamed.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 1e2591d48c642e30847ab6038088f8c1f0ec3b70
Author: Bastien Nocera <hadess at hadess.net>
Date:   Sun Sep 18 14:10:07 2011 +0100

    hostnamed: Fix "SetStaticHostname" debug output
    
    Was using the wrong property (eg. not the one we just set)
    
    https://bugs.freedesktop.org/show_bug.cgi?id=40987

diff --git a/src/hostnamed.c b/src/hostnamed.c
index 9e8825d..0db78c0 100644
--- a/src/hostnamed.c
+++ b/src/hostnamed.c
@@ -396,7 +396,7 @@ static DBusHandlerResult hostname_message_handler(
                                 return bus_send_error_reply(connection, message, NULL, r);
                         }
 
-                        log_info("Changed static host name to '%s'", strempty(data[PROP_HOSTNAME]));
+                        log_info("Changed static host name to '%s'", strempty(data[PROP_STATIC_HOSTNAME]));
 
                         changed = bus_properties_changed_new(
                                         "/org/freedesktop/hostname1",



More information about the systemd-commits mailing list