termux-packages/x11-packages/i3status/i3status-2.12_src_print_disk_info.c.patch

13 lines
643 B
Diff
Raw Normal View History

2018-09-10 00:42:26 +02:00
diff -uNr i3status-2.12/src/print_disk_info.c i3status-2.12.mod/src/print_disk_info.c
--- i3status-2.12/src/print_disk_info.c 2018-05-11 12:10:46.000000000 +0300
+++ i3status-2.12.mod/src/print_disk_info.c 2018-06-21 19:33:34.403580664 +0300
@@ -144,7 +144,7 @@
char *sanitized = sstrdup(path);
if (strlen(sanitized) > 1 && sanitized[strlen(sanitized) - 1] == '/')
sanitized[strlen(sanitized) - 1] = '\0';
- FILE *mntentfile = setmntent("/etc/mtab", "r");
+ FILE *mntentfile = setmntent("/proc/self/mounts", "r");
struct mntent *m;
while ((m = getmntent(mntentfile)) != NULL) {