Adding upstream version 4.2+20230901.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
14fbe53fb1
commit
f48db6685a
15 changed files with 418 additions and 196 deletions
7
mdadm.c
7
mdadm.c
|
@ -1340,8 +1340,7 @@ int main(int argc, char *argv[])
|
|||
if (c.homehost == NULL && c.require_homehost)
|
||||
c.homehost = conf_get_homehost(&c.require_homehost);
|
||||
if (c.homehost == NULL || strcasecmp(c.homehost, "<system>") == 0) {
|
||||
if (gethostname(sys_hostname, sizeof(sys_hostname)) == 0) {
|
||||
sys_hostname[sizeof(sys_hostname)-1] = 0;
|
||||
if (s_gethostname(sys_hostname, sizeof(sys_hostname)) == 0) {
|
||||
c.homehost = sys_hostname;
|
||||
}
|
||||
}
|
||||
|
@ -1709,6 +1708,10 @@ int main(int argc, char *argv[])
|
|||
autodetect();
|
||||
break;
|
||||
}
|
||||
if (ss) {
|
||||
ss->ss->free_super(ss);
|
||||
free(ss);
|
||||
}
|
||||
if (locked)
|
||||
cluster_release_dlmlock();
|
||||
close_fd(&mdfd);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue