config: Allow for more whitespace in include statements

master
Raheman Vaiya 4 years ago
parent 55c4477b89
commit 31c8bffe5c
  1. BIN
      data/keyd.1.gz
  2. 7
      src/config.c

Binary file not shown.

@ -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) {

Loading…
Cancel
Save