Merge pull request #5236 from lynxis/rb_perl
[feed/packages.git] / utils / smartmontools / patches / 001-musl-compat-realpath.patch
1 commit 2473c5e01ea14fae96c157d8bce3a3ec1da124f3
2 Author: Maxim Storchak <m.storchak@gmail.com>
3 Date: Sat Dec 9 15:21:51 2017 +0200
4
5 Replace canonicalize_file_name with realpath equivalent
6
7 diff --git a/os_linux.cpp b/os_linux.cpp
8 index 134d5bc..0575a13 100644
9 --- a/os_linux.cpp
10 +++ b/os_linux.cpp
11 @@ -3176,7 +3176,7 @@ static bool is_hpsa(const char * name)
12 {
13 char path[128];
14 snprintf(path, sizeof(path), "/sys/block/%s/device", name);
15 - char * syshostpath = canonicalize_file_name(path);
16 + char * syshostpath = realpath(path, NULL);
17 if (!syshostpath)
18 return false;
19