diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2011-03-28 14:57:09 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2011-03-28 14:57:09 +0000 |
commit | 4a732c9d4dd00793be3da653a87b5e0b45eded3c (patch) | |
tree | 11796a648fd030ec4a00e114711a1d6f6b362edd /main/mdadm/mdadm-uclibc.patch | |
parent | 7e3db1ae6fc118b65d35880040d0bf8007092d14 (diff) | |
download | aports-4a732c9d4dd00793be3da653a87b5e0b45eded3c.tar.bz2 aports-4a732c9d4dd00793be3da653a87b5e0b45eded3c.tar.xz |
main/mdadm: upgrade to 3.2.1
Diffstat (limited to 'main/mdadm/mdadm-uclibc.patch')
-rw-r--r-- | main/mdadm/mdadm-uclibc.patch | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/main/mdadm/mdadm-uclibc.patch b/main/mdadm/mdadm-uclibc.patch deleted file mode 100644 index a7b01a08d..000000000 --- a/main/mdadm/mdadm-uclibc.patch +++ /dev/null @@ -1,27 +0,0 @@ -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); -- list->path = canonicalize_file_name(path); -+ list->path = malloc(PATH_MAX); -+ if (list->path) -+ realpath(path, list->path); - list->next = NULL; - } - closedir(driver_dir); -@@ -207,9 +209,9 @@ const struct imsm_orom *find_imsm_orom(void) - char *devt_to_devpath(dev_t dev) - { - 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; - } - - static char *diskfd_to_devpath(int fd) |