summaryrefslogtreecommitdiff
path: root/user/smartmontools/musl-canonicalize_file_name.patch
diff options
context:
space:
mode:
authorDan Theisen <djt@hxx.in>2018-07-06 02:10:32 -0700
committerDan Theisen <djt@hxx.in>2018-07-06 02:34:42 -0700
commit18ab65d12e1f62baae5e5e44da269d87f1022356 (patch)
tree95799fe9c2d59217c7d46f45c8c98bde0349e889 /user/smartmontools/musl-canonicalize_file_name.patch
parent8d2f786addf7f1a31f61eae5b8d4b89ff5d27330 (diff)
downloadpackages-18ab65d12e1f62baae5e5e44da269d87f1022356.tar.gz
packages-18ab65d12e1f62baae5e5e44da269d87f1022356.tar.bz2
packages-18ab65d12e1f62baae5e5e44da269d87f1022356.tar.xz
packages-18ab65d12e1f62baae5e5e44da269d87f1022356.zip
user/smartmontools: import, take, minor fix ups
Diffstat (limited to 'user/smartmontools/musl-canonicalize_file_name.patch')
-rw-r--r--user/smartmontools/musl-canonicalize_file_name.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/user/smartmontools/musl-canonicalize_file_name.patch b/user/smartmontools/musl-canonicalize_file_name.patch
new file mode 100644
index 000000000..bdc7cc6f1
--- /dev/null
+++ b/user/smartmontools/musl-canonicalize_file_name.patch
@@ -0,0 +1,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;
+