14 lines
412 B
Diff
14 lines
412 B
Diff
Remove this on 6.7 release as this https://www.smartmontools.org/ticket/921 was accepted
|
|
|
|
--- os_linux.cpp
|
|
+++ os_linux.cpp
|
|
@@ -3176,7 +3176,7 @@ static bool is_hpsa(const char * name)
|
|
{
|
|
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;
|
|
|