diff options
author | NeilBrown <neilb@suse.de> | 2008-11-04 20:50:38 +1100 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2008-11-04 20:50:38 +1100 |
commit | 9180c81bd7f4f3dd2fb9f2835894d8c0e9488dbd (patch) | |
tree | 2caedf5b94048b44d1c6106866e7658d7d334c00 | |
parent | cf8de6913b63a99602cc2bb6e6ea7b9f9eb694d9 (diff) | |
download | mdadm-9180c81bd7f4f3dd2fb9f2835894d8c0e9488dbd.tar.gz |
Always set 'homehost' if not specified.
The default for 'homehost' is now '<system>' rather than
unspecified.
-rw-r--r-- | mdadm.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |