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:
parent
605f81a896
commit
a9169c1c58
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user