diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-10-10 08:48:38 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-10-10 08:48:38 +0000 |
commit | 14bcae1344091400e419fd9896024a290792ee41 (patch) | |
tree | 0cf1088a2fe200cf13cadfadb0da1d10401bfd76 /Monitor.c | |
parent | Releasing debian version 4.2+20230508-7. (diff) | |
download | mdadm-14bcae1344091400e419fd9896024a290792ee41.tar.xz mdadm-14bcae1344091400e419fd9896024a290792ee41.zip |
Merging upstream version 4.2+20230901.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'Monitor.c')
-rw-r--r-- | Monitor.c | 3 |
1 files changed, 1 insertions, 2 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) |