summaryrefslogtreecommitdiffstats
path: root/debian/patches/strcat-look-for-md-device-in-dev-md.patch
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2023-02-24 14:37:52 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2023-02-24 14:37:52 +0000
commit1cbda917747b894268cbe6ec6e576db26d9fd049 (patch)
treec88de9d39f187cf339e1add1f768bbda4a61130f /debian/patches/strcat-look-for-md-device-in-dev-md.patch
parentAdding upstream version 4.2. (diff)
downloadmdadm-f1426d6668ea5c0c0bfc0c3d8d97cde5a378843c.tar.xz
mdadm-f1426d6668ea5c0c0bfc0c3d8d97cde5a378843c.zip
Adding debian version 4.2-5.debian/4.2-5
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/patches/strcat-look-for-md-device-in-dev-md.patch')
-rw-r--r--debian/patches/strcat-look-for-md-device-in-dev-md.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/debian/patches/strcat-look-for-md-device-in-dev-md.patch b/debian/patches/strcat-look-for-md-device-in-dev-md.patch
new file mode 100644
index 0000000..083fd77
--- /dev/null
+++ b/debian/patches/strcat-look-for-md-device-in-dev-md.patch
@@ -0,0 +1,17 @@
+Description: Look for md device in /dev/md
+Author: Martin Mares <mj@ucw.cz>
+Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=958060
+Forwarded: no
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+--- a/Monitor.c
++++ b/Monitor.c
+@@ -188,7 +188,7 @@ int Monitor(struct mddev_dev *devlist,
+ st->devname = xstrdup(mdlist->devname);
+ else {
+ st->devname = xmalloc(8+strlen(mdlist->devname)+1);
+- strcpy(strcpy(st->devname, "/dev/md/"),
++ strcat(strcpy(st->devname, "/dev/md/"),
+ mdlist->devname);
+ }
+ st->next = statelist;