audiobookshelf: 2.18.1 -> 2.19.0 (#378967)
[NixPkgs.git] / pkgs / by-name / lc / lcdproc / hardcode_mtab.patch
blob33c4b8e83b2d961714aded488228cbc98716e701
1 diff --git a/clients/lcdproc/machine_Linux.c b/clients/lcdproc/machine_Linux.c
2 index 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;
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");
16 /* Get rid of old, unmounted filesystems... */
17 memset(fs, 0, sizeof(mounts_type) * 256);