Always set 'homehost' if not specified.
The default for 'homehost' is now '<system>' rather than unspecified.
This commit is contained in:
parent
cf8de6913b
commit
9180c81bd7
2
mdadm.c
2
mdadm.c
|
@ -997,7 +997,7 @@ int main(int argc, char *argv[])
|
|||
|
||||
if (homehost == NULL)
|
||||
homehost = conf_get_homehost();
|
||||
if (homehost && strcmp(homehost, "<system>")==0) {
|
||||
if (homehost == NULL || strcmp(homehost, "<system>")==0) {
|
||||
if (gethostname(sys_hostname, sizeof(sys_hostname)) == 0) {
|
||||
sys_hostname[sizeof(sys_hostname)-1] = 0;
|
||||
homehost = sys_hostname;
|
||||
|
|
Loading…
Reference in New Issue