[systemd-commits] src/shared

Michal Sekletar msekleta at kemper.freedesktop.org
Mon Oct 27 03:12:19 PDT 2014


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

New commits:
commit a9169c1c589bf7c7a29e7905d17e350ce7c7c48e
Author: Michal Sekletar <msekleta at redhat.com>
Date:   Mon Oct 27 11:08:26 2014 +0100

    util: fix copy-paste error and actually set the new hostname
    
    Reported-by: sztanpet on irc

diff --git a/src/shared/util.c b/src/shared/util.c
index 7d94a28..4143f6d 100644
--- a/src/shared/util.c
+++ b/src/shared/util.c
@@ -7189,7 +7189,7 @@ int sethostname_idempotent(const char *s) {
         if (streq(buf, s))
                 return 0;
 
-        r = sethostname(buf, strlen(buf));
+        r = sethostname(s, strlen(s));
         if (r < 0)
                 return -errno;
 



More information about the systemd-commits mailing list