Description: Changes filepath from /etc/mtab to /proc/self/mounts
Author: Håvard Flaget Aasen <haavard_aasen@yahoo.no>
Last-Update: 2020-02-01
---
--- a/disk.c
+++ b/disk.c
@@ -646,9 +646,9 @@
 	FILE* f;
 	struct mntent* m;
 
-	f = setmntent("/etc/mtab", "r");
+	f = setmntent("/proc/self/mounts", "r");
 	if (!f) {
-		error_set("Error accessing /etc/mtab. %s.", strerror(errno));
+		error_set("Error accessing /proc/self/mounts. %s.", strerror(errno));
 		return -1;
 	}
 
