chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
journal: also consider audit fields with '-' valid
[elogind.git]
/
src
/
core
/
hostname-setup.c
diff --git
a/src/core/hostname-setup.c
b/src/core/hostname-setup.c
index 8aa1cff1d30f23ad1a42826a487a7e8540a11beb..57baa7927504197d881a024ede7304cfad18ad3a 100644
(file)
--- a/
src/core/hostname-setup.c
+++ b/
src/core/hostname-setup.c
@@
-82,7
+82,7
@@
int hostname_setup(void) {
hn = "localhost";
}
- if (sethostname
(hn, strlen(hn)
) < 0) {
+ if (sethostname
_idempotent(hn
) < 0) {
log_warning("Failed to set hostname to <%s>: %m", hn);
return -errno;
}