diff options
author | Kay Sievers <kay@vrfy.org> | 2012-10-28 04:04:22 +0100 |
---|---|---|
committer | Kay Sievers <kay@vrfy.org> | 2012-10-28 04:04:22 +0100 |
commit | ff944daa019c1101d6464412e6682732ec11143a (patch) | |
tree | 37623f18e4e7c7f65c5d3d7d2a8be9bef21798d9 /src/udev/keymap | |
parent | a8f454e8a387eaf752a64955dcef8cbbae1b77ed (diff) |
udev: get rid of SYSCONFDIR
Diffstat (limited to 'src/udev/keymap')
-rw-r--r-- | src/udev/keymap/keymap.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/udev/keymap/keymap.c b/src/udev/keymap/keymap.c index 0db56d26ad..939407fd0b 100644 --- a/src/udev/keymap/keymap.c +++ b/src/udev/keymap/keymap.c @@ -423,12 +423,13 @@ int main(int argc, char **argv) /* Open override file if present, otherwise default file */ char keymap_path[PATH_MAX]; FILE *f; - snprintf(keymap_path, sizeof(keymap_path), "%s%s", SYSCONFDIR "/udev/keymaps/", filearg); + + snprintf(keymap_path, sizeof(keymap_path), "/etc/udev/keymaps/%s", filearg); f = fopen(keymap_path, "re"); if (f) { merge_table(fd, f); } else { - snprintf(keymap_path, sizeof(keymap_path), "%s%s", UDEVLIBEXECDIR "/keymaps/", filearg); + snprintf(keymap_path, sizeof(keymap_path), UDEVLIBEXECDIR "/keymaps/%s", filearg); f = fopen(keymap_path, "re"); if (f) merge_table(fd, f); |