summaryrefslogtreecommitdiff
path: root/misc/mbuffer/patches/patch-mbuffer.c
blob: 52a93e4e16a93656b16dceab5d4f1fb1e991a8a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
$NetBSD: patch-mbuffer.c,v 1.1 2018/09/18 09:49:29 fhajny Exp $

Default sysconfdir location.

--- mbuffer.c.orig	2018-06-25 20:37:20.000000000 +0000
+++ mbuffer.c
@@ -1029,7 +1029,7 @@ static void initDefaults()
 
 	const char *home = getenv("HOME");
 	readConfigFile("/etc/mbuffer.rc");
-	readConfigFile(PREFIX "/etc/mbuffer.rc");
+	readConfigFile(SYSCONFDIR "/mbuffer.rc");
 	if (home == 0) {
 		warningmsg("HOME environment variable not set - unable to find defaults file\n");
 		return;