contrib/lirc/20150115020157-b7758ca-user-config.patch
Alan Mizrahi c412765afe [notify] lirc: updated to 0.9.2
The daemon is now configured in /etc/lirc/lirc_options.conf
and remotes in individual files in /etc/lirc/lircd.conf.d/
2015-01-26 21:22:07 +09:00

23 lines
741 B
Diff

commit b7758ca235bb5d8bbeca7ea45d304545d757b957
Author: Alec Leamas <leamas.alec@gmail.com>
Date: Thu Jan 15 02:01:57 2015 +0100
lib: Bad bugfix for finding ~/.lircrc
Basically, the common library code did not find ~/.lircrc, just
~/.config/lircrc. Fixed.
diff --git a/lib/lirc_client.c b/lib/lirc_client.c
index b161f0e..0f31fa8 100644
--- a/lib/lirc_client.c
+++ b/lib/lirc_client.c
@@ -805,7 +805,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) {