projects
/
platform
/
upstream
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
605f81a
)
util: fix copy-paste error and actually set the new hostname
author
Michal Sekletar
<msekleta@redhat.com>
Mon, 27 Oct 2014 10:08:26 +0000
(11:08 +0100)
committer
Michal Sekletar
<msekleta@redhat.com>
Mon, 27 Oct 2014 10:09:39 +0000
(11:09 +0100)
Reported-by: sztanpet on irc
src/shared/util.c
patch
|
blob
|
history
diff --git
a/src/shared/util.c
b/src/shared/util.c
index
7d94a28
..
4143f6d
100644
(file)
--- 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;