You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
1.3 KiB
37 lines
1.3 KiB
11 years ago
|
# --- SDE-COPYRIGHT-NOTE-BEGIN ---
|
||
|
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
|
||
|
#
|
||
|
# Filename: package/.../musl/pkg/mdadm/0004-mdam-musl-no-canonicalize_file_name.patch
|
||
|
# Copyright (C) 2012 - 2013 The OpenSDE Project
|
||
|
#
|
||
|
# More information can be found in the files COPYING and README.
|
||
|
#
|
||
|
# This patch file is dual-licensed. It is available under the license the
|
||
|
# patched project is licensed under, as long as it is an OpenSource license
|
||
|
# as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
|
||
|
# of the GNU General Public License as published by the Free Software
|
||
|
# Foundation; either version 2 of the License, or (at your option) any later
|
||
|
# version.
|
||
|
# --- SDE-COPYRIGHT-NOTE-END ---
|
||
|
|
||
|
--- ./platform-intel.c.orig 2012-11-25 02:37:18.872911773 +0100
|
||
|
+++ ./platform-intel.c 2012-11-25 02:37:24.525034590 +0100
|
||
|
@@ -116,7 +116,7 @@
|
||
|
|
||
|
list->dev_id = (__u16) dev_id;
|
||
|
list->type = type;
|
||
|
- list->path = canonicalize_file_name(path);
|
||
|
+ list->path = realpath(path, NULL);
|
||
|
list->next = NULL;
|
||
|
if ((list->pci_id = strrchr(list->path, '/')) != NULL)
|
||
|
list->pci_id++;
|
||
|
@@ -459,7 +459,7 @@
|
||
|
char device[46];
|
||
|
|
||
|
sprintf(device, "/sys/dev/block/%d:%d/device", major(dev), minor(dev));
|
||
|
- return canonicalize_file_name(device);
|
||
|
+ return realpath(device, NULL);
|
||
|
}
|
||
|
|
||
|
char *diskfd_to_devpath(int fd)
|