mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
helpers: allow /sys/ access too
This commit is contained in:
@ -277,7 +277,7 @@ helpers_get_proc_file (const gchar *path,
|
||||
canon = g_file_get_path (file);
|
||||
|
||||
return g_file_is_native (file) &&
|
||||
g_str_has_prefix (canon, "/proc/") &&
|
||||
(g_str_has_prefix (canon, "/proc/") || g_str_has_prefix (canon, "/sys/")) &&
|
||||
g_file_get_contents (canon, contents, len, NULL);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user