summaryrefslogtreecommitdiffstats
path: root/abs/core/lirc/0012-lib-Bad-bugfix-for-finding-.lircrc.patch
blob: dc97b13a625e95b905245cc8415c55bb7ded6f78 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
From 96292ce20b75ef27851ba75aed1aafb15a207a79 Mon Sep 17 00:00:00 2001
From: Alec Leamas <leamas.alec@gmail.com>
Date: Thu, 15 Jan 2015 02:01:57 +0100
Subject: [PATCH 12/13] lib: Bad bugfix for finding  ~/.lircrc

Basically, the common library code did not find ~/.lircrc, just
~/.config/lircrc. Fixed.
---
 lib/lirc_client.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/lirc_client.c b/lib/lirc_client.c
index c441803..df2eaef 100644
--- a/lib/lirc_client.c
+++ b/lib/lirc_client.c
@@ -807,7 +807,7 @@ static char *lirc_getfilename(const char *file, const char *current_file)
 			if (filename == NULL) {
 				return NULL;
 			}
-			strcat(filename, LIRCRC_USER_FILE);
+			strcat(filename, "/" LIRCRC_USER_FILE);
 		}
 		filename = realloc(filename, strlen(filename) + 1);
 	} else if (strncmp(file, "~/", 2) == 0) {
-- 
2.2.2