Ticket #921: musl-canonicalize_file_name.patch

File musl-canonicalize_file_name.patch, 353 bytes (added by tbk, 4 years ago)
  • os_linux.cpp

    # Ticket: https://smartmontools.org/ticket/921#ticket
    a b  
    31763176{
    31773177  char path[128];
    31783178  snprintf(path, sizeof(path), "/sys/block/%s/device", name);
    3179   char * syshostpath = canonicalize_file_name(path);
     3179  char * syshostpath = realpath(path, NULL);
    31803180  if (!syshostpath)
    31813181    return false;
    31823182