aboutsummaryrefslogtreecommitdiff
path: root/hugeutils.c
diff options
context:
space:
mode:
Diffstat (limited to 'hugeutils.c')
-rw-r--r--hugeutils.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/hugeutils.c b/hugeutils.c
index a7ccda0..f8e2b33 100644
--- a/hugeutils.c
+++ b/hugeutils.c
@@ -661,7 +661,8 @@ static void find_mounts(void)
*/
err = sscanf(line, "%*s %" stringify(PATH_MAX) "s hugetlbfs "
"%*s %d", path, &dummy);
- if ((err == 2) && (hugetlbfs_test_path(path) == 1))
+ if ((err == 2) && (hugetlbfs_test_path(path) == 1) &&
+ !(access(path, R_OK | W_OK | X_OK)))
add_hugetlbfs_mount(path, 0);
}
close(fd);