mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 21:37:15 +02:00
13 lines
341 B
Diff
13 lines
341 B
Diff
# 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;
|
|
|