1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2025-01-20 14:03:39 +03:00

util: fix copy-paste error and actually set the new hostname

Reported-by: sztanpet on irc
This commit is contained in:
Michal Sekletar 2014-10-27 11:08:26 +01:00
parent 605f81a896
commit a9169c1c58

View File

@ -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;