blob: 2cd36e0dce5ef593347f2b82d71c2cb404d9fdea (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
Bug: https://bugs.gentoo.org/644586
Upstream fix: https://www.smartmontools.org/changeset/4603
--- smartmontools-6.6/os_linux.cpp
+++ smartmontools-6.6/os_linux.cpp
@@ -3177,5 +3177,5 @@
char path[128];
snprintf(path, sizeof(path), "/sys/block/%s/device", name);
- char * syshostpath = canonicalize_file_name(path);
+ char * syshostpath = realpath(name, (char *)0);
if (!syshostpath)
return false;
|