summaryrefslogtreecommitdiffstats
path: root/main/mdadm/mdadm-uclibc.patch
diff options
context:
space:
mode:
Diffstat (limited to 'main/mdadm/mdadm-uclibc.patch')
-rw-r--r--main/mdadm/mdadm-uclibc.patch13
1 files changed, 7 insertions, 6 deletions
diff --git a/main/mdadm/mdadm-uclibc.patch b/main/mdadm/mdadm-uclibc.patch
index abc9969ca..a7b01a08d 100644
--- a/main/mdadm/mdadm-uclibc.patch
+++ b/main/mdadm/mdadm-uclibc.patch
@@ -1,6 +1,8 @@
---- a/platform-intel.c Mon Nov 9 15:58:52 2009
-+++ b/platform-intel.c Mon Nov 9 16:01:47 2009
-@@ -87,7 +87,9 @@
+diff --git a/platform-intel.c b/platform-intel.c
+index 30f7914..1e62e87 100644
+--- a/platform-intel.c
++++ b/platform-intel.c
+@@ -91,7 +91,9 @@ struct sys_dev *find_driver_devices(const char *bus, const char *driver)
/* generate canonical path name for the device */
sprintf(path, "/sys/bus/%s/drivers/%s/%s",
bus, driver, de->d_name);
@@ -11,13 +13,12 @@
list->next = NULL;
}
closedir(driver_dir);
-@@ -203,9 +205,10 @@
+@@ -207,9 +209,9 @@ const struct imsm_orom *find_imsm_orom(void)
char *devt_to_devpath(dev_t dev)
{
- char device[40];
+ char device[46];
-
+ char *tmp = malloc(PATH_MAX);
-+
sprintf(device, "/sys/dev/block/%d:%d/device", major(dev), minor(dev));
- return canonicalize_file_name(device);
+ return tmp ? realpath(device, tmp) : NULL;