diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-03-07 18:21:04 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-03-07 18:21:29 +0000 |
commit | 69ab088aee37a2b77a5f2ede2f15c8a01c370a2c (patch) | |
tree | da9a217e0737fd4d4115852eac44dd8298bb8505 | |
parent | Updating host-name-in-default-mailfrom.patch for new upstream. (diff) | |
download | mdadm-69ab088aee37a2b77a5f2ede2f15c8a01c370a2c.tar.xz mdadm-69ab088aee37a2b77a5f2ede2f15c8a01c370a2c.zip |
Updating exit-gracefully-when-md-device-not-found.patch for new upstream.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | debian/patches/debian/0004-exit-gracefully-when-md-device-not-found.patch | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/debian/patches/debian/0004-exit-gracefully-when-md-device-not-found.patch b/debian/patches/debian/0004-exit-gracefully-when-md-device-not-found.patch index c580449..225a8a3 100644 --- a/debian/patches/debian/0004-exit-gracefully-when-md-device-not-found.patch +++ b/debian/patches/debian/0004-exit-gracefully-when-md-device-not-found.patch @@ -13,7 +13,7 @@ diff -Naurp mdadm.orig/Monitor.c mdadm/Monitor.c + if (st->devnm[0] == 0) { + char *found = fd2devnm(fd); + if (!found) { -+ alert("DeviceDisappeared", dev, NULL, ainfo); ++ alert(EVENT_DEVICE_DISAPPEARED, NULL, 0, dev, NULL); + goto out; + } + snprintf(st->devnm, MD_NAME_MAX, "%s", found); |