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
|
@ -222,11 +222,10 @@ int Monitor(struct mddev_dev *devlist,
|
|||
info.dosyslog = dosyslog;
|
||||
info.test = c->test;
|
||||
|
||||
if (gethostname(info.hostname, sizeof(info.hostname)) != 0) {
|
||||
if (s_gethostname(info.hostname, sizeof(info.hostname)) != 0) {
|
||||
pr_err("Cannot get hostname.\n");
|
||||
return 1;
|
||||
}
|
||||
info.hostname[sizeof(info.hostname) - 1] = '\0';
|
||||
|
||||
if (share){
|
||||
if (check_one_sharer(c->scan) == 2)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue