You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
591 B

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