about summary refs log tree commit diff
path: root/pkgs/servers/monitoring/lcdproc/hardcode_mtab.patch
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/servers/monitoring/lcdproc/hardcode_mtab.patch')
-rw-r--r--pkgs/servers/monitoring/lcdproc/hardcode_mtab.patch17
1 files changed, 0 insertions, 17 deletions
diff --git a/pkgs/servers/monitoring/lcdproc/hardcode_mtab.patch b/pkgs/servers/monitoring/lcdproc/hardcode_mtab.patch
deleted file mode 100644
index 33c4b8e83b2d..000000000000
--- a/pkgs/servers/monitoring/lcdproc/hardcode_mtab.patch
+++ /dev/null
@@ -1,17 +0,0 @@
-diff --git a/clients/lcdproc/machine_Linux.c b/clients/lcdproc/machine_Linux.c
-index 7bb7266..a629674 100644
---- a/clients/lcdproc/machine_Linux.c
-+++ b/clients/lcdproc/machine_Linux.c
-@@ -259,11 +259,7 @@ machine_get_fs(mounts_type fs[], int *cnt)
-	char line[256];
-	int x = 0, err;
-
--#ifdef MTAB_FILE
--	mtab_fd = fopen(MTAB_FILE, "r");
--#else
--#error "Can't find your mounted filesystem table file."
--#endif
-+	mtab_fd = fopen("/etc/mtab", "r");
-
-	/* Get rid of old, unmounted filesystems... */
-	memset(fs, 0, sizeof(mounts_type) * 256);