OpenSDE Packages Database (without history before r20070)
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.

36 lines
1.3 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../musl/pkg/mdadm/0004-mdam-musl-no-canonicalize_file_name.patch
  5. # Copyright (C) 2012 - 2013 The OpenSDE Project
  6. #
  7. # More information can be found in the files COPYING and README.
  8. #
  9. # This patch file is dual-licensed. It is available under the license the
  10. # patched project is licensed under, as long as it is an OpenSource license
  11. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  12. # of the GNU General Public License as published by the Free Software
  13. # Foundation; either version 2 of the License, or (at your option) any later
  14. # version.
  15. # --- SDE-COPYRIGHT-NOTE-END ---
  16. --- ./platform-intel.c.orig 2012-11-25 02:37:18.872911773 +0100
  17. +++ ./platform-intel.c 2012-11-25 02:37:24.525034590 +0100
  18. @@ -116,7 +116,7 @@
  19. list->dev_id = (__u16) dev_id;
  20. list->type = type;
  21. - list->path = canonicalize_file_name(path);
  22. + list->path = realpath(path, NULL);
  23. list->next = NULL;
  24. if ((list->pci_id = strrchr(list->path, '/')) != NULL)
  25. list->pci_id++;
  26. @@ -459,7 +459,7 @@
  27. char device[46];
  28. sprintf(device, "/sys/dev/block/%d:%d/device", major(dev), minor(dev));
  29. - return canonicalize_file_name(device);
  30. + return realpath(device, NULL);
  31. }
  32. char *diskfd_to_devpath(int fd)