at 18.09-beta 538 B view raw
1diff --git a/clients/lcdproc/machine_Linux.c b/clients/lcdproc/machine_Linux.c 2index 7bb7266..a629674 100644 3--- a/clients/lcdproc/machine_Linux.c 4+++ b/clients/lcdproc/machine_Linux.c 5@@ -259,11 +259,7 @@ machine_get_fs(mounts_type fs[], int *cnt) 6 char line[256]; 7 int x = 0, err; 8 9-#ifdef MTAB_FILE 10- mtab_fd = fopen(MTAB_FILE, "r"); 11-#else 12-#error "Can't find your mounted filesystem table file." 13-#endif 14+ mtab_fd = fopen("/etc/mtab", "r"); 15 16 /* Get rid of old, unmounted filesystems... */ 17 memset(fs, 0, sizeof(mounts_type) * 256);