kbd-util: allow kmap as a valid suffix

debian is using kmap suffix in console-data and kbd accepts this too.
This commit is contained in:
Georg Müller
2026-09-22 16:43:50 +02:00
committed by Luca Boccassi
parent c549d00e9f
commit 0827be05dd
+1 -1
View File
@@ -58,7 +58,7 @@ static int keymap_recurse_dir_callback(
if (!IN_SET(de->d_type, DT_REG, DT_LNK))
return RECURSE_DIR_CONTINUE;
const char *e = endswith(de->d_name, ".map") ?: endswith(de->d_name, ".map.gz");
const char *e = ENDSWITH_SET(de->d_name, ".map", ".map.gz", ".kmap", ".kmap.gz");
if (!e)
return RECURSE_DIR_CONTINUE;