diff options
-rw-r--r-- | lr.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lr.c b/lr.c index b8c135c..4d897b8 100644 --- a/lr.c +++ b/lr.c @@ -985,6 +985,8 @@ scan_filesystems() * this will fail if we are not allowed to read the mountpoint, but then * we should not have to look up this st_dev value... */ mtab = setmntent(_PATH_MOUNTED, "r"); + if (!mtab && errno == ENOENT) + mtab = setmntent("/proc/mounts", "r"); if (!mtab) return; |