diff --git a/data/keyd.1.gz b/data/keyd.1.gz index 666278c..bfa57f8 100644 Binary files a/data/keyd.1.gz and b/data/keyd.1.gz differ diff --git a/src/config.c b/src/config.c index 95c1df3..168b3e8 100644 --- a/src/config.c +++ b/src/config.c @@ -79,8 +79,10 @@ static const char *resolve_include_path(const char *path, const char *include_pa char tmp[PATH_MAX]; const char *dir; - if (strstr(include_path, ".")) + if (strstr(include_path, ".")) { + warn("%s: included files may not have a file extension", include_path); return NULL; + } strcpy(tmp, path); dir = dirname(tmp); @@ -131,6 +133,9 @@ static char *read_file(const char *path) line[len-1] = 0; + while (include_path[0] == ' ') + include_path++; + resolved_path = resolve_include_path(path, include_path); if (!resolved_path) {