aboutsummaryrefslogtreecommitdiffstats
path: root/main/smartmontools/musl-canonicalize_file_name.patch
blob: bdc7cc6f1f914f6e01cfb64b22cc1fb51e68886d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
# Ticket: https://smartmontools.org/ticket/921#ticket
--- a/os_linux.cpp
+++ b/os_linux.cpp
@@ -3176,7 +3176,7 @@
 {
   char path[128];
   snprintf(path, sizeof(path), "/sys/block/%s/device", name);
-  char * syshostpath = canonicalize_file_name(path);
+  char * syshostpath = realpath(path, NULL);
   if (!syshostpath)
     return false;